Model
StoreSwitcher
Magento\Store\Model\StoreSwitcher
What it does
This class manages the store switching process in Magento 2, determining the correct redirect URL when customers switch between different store views.
Developers would use this when implementing custom store switching logic or when they need to modify the redirect behavior after a customer changes their store view, language, or currency.
Public Methods
- switch()