ContextInterface
Magento\Store\Model\StoreSwitcher\ContextInterface
What it does
This interface defines the contract for passing context information during store view switching operations in Magento 2.
Developers use this when implementing custom store switcher logic to access the source store, destination store, and redirect URL after the switch is complete.
It's primarily used by store switcher processors that need to maintain context during multi-store transitions.
Public Methods
- getFromStore()
- getTargetStore()
- getRedirectUrl()