Log in
Model

ContextPlugin

Magento\Customer\Model\App\Action\ContextPlugin

What it does

This plugin intercepts customer action execution to populate the HTTP context with customer information (group ID and authentication status).

Developers use this to make customer session data available for cache variation and full page cache decisions, ensuring different content is served to logged-in vs guest customers.

Public Methods

  • beforeExecute()