Model
RedirectDataPreprocessor
Magento\Customer\Model\StoreSwitcher\RedirectDataPreprocessor
What it does
This class collects customer data during store view switches in Magento 2.
When a logged-in customer switches between store views, it validates that the customer is associated with the target store and includes their customer ID in the redirect data to maintain their session across stores.
Public Methods
- process()