Log in
Interface

StoreManagerInterface

Magento\Store\Model\StoreManagerInterface

What it does

The StoreManagerInterface provides methods to manage and retrieve Magento's multi-store architecture components including stores, websites, and store groups.

Developers use this interface to get the current store context, check if the system is in single-store mode, switch between stores, or retrieve store/website/group information throughout the application.

It's essential for building multi-store aware features and handling store-specific logic.

Public Methods

  • setIsSingleStoreModeAllowed()
  • hasSingleStore()
  • isSingleStoreMode()
  • getStore()
  • getStores()
  • getWebsite()
  • getWebsites()
  • reinitStores()
  • getDefaultStoreView()
  • getGroup()
  • getGroups()
  • setCurrentStore()