Interface
StoreManagerInterface
Magento\Store\Model\StoreManagerInterface
What it does
This interface defines the contract for managing Magento's multi-store functionality.
Developers use it to retrieve store, website, and store group information, check if the system is running in single-store mode, and switch between different store views.
It's essential when building features that need to work across multiple stores or need store-specific data.
Public Methods
- setIsSingleStoreModeAllowed()
- hasSingleStore()
- isSingleStoreMode()
- getStore()
- getStores()
- getWebsite()
- getWebsites()
- reinitStores()
- getDefaultStoreView()
- getGroup()
- getGroups()
- setCurrentStore()