Log in
Model

ManagePrivateContent

Magento\Store\Model\StoreSwitcher\ManagePrivateContent

What it does

This class manages private content cookies during store switching in Magento 2.

When a customer switches from one store view to another, it updates the private content version cookie to ensure local storage data remains synchronized with the target store.

Developers would use this as part of the store switcher chain to maintain consistent customer-specific data across different store views.

Public Methods

  • switch()