Log in
Model

ContextPlugin

Magento\Tax\Model\App\Action\ContextPlugin

What it does

This plugin intercepts controller actions to set tax rate information in the HTTP context for logged-in customers when page caching is enabled.

It ensures that cached pages can display correct tax-affected prices by storing customer-specific tax rates before the controller executes.

Developers don't typically interact with this class directly - it's part of Magento's tax calculation infrastructure that works automatically with full page cache.

Public Methods

  • beforeExecute()