Log in
Model

Store

Magento\Store\Model\System\Store

What it does

This class provides a centralized way to retrieve and manage Magento's store hierarchy (websites, store groups, and store views) for use in forms, dropdowns, and administrative interfaces.

Developers use it when building admin forms or UI components that need to display store selection options, or when they need to look up store names and relationships by ID.

It's commonly used in system configuration pages and administrative grids where store scope selection is required.

Public Methods

  • getStoreValuesForForm()
  • getStoresStructure()
  • getStoreOptionsTree()
  • getWebsiteValuesForForm()
  • getWebsiteOptionHash()
  • getStoreOptionHash()
  • getStoreGroupOptionHash()
  • getWebsiteName()
  • getGroupName()
  • getStoreName()
  • getStoreData()
  • getStoreNameWithWebsite()
  • getWebsiteCollection()
  • getGroupCollection()
  • getStoreCollection()
  • reload()
  • getStoreNamePath()
  • setIsAdminScopeAllowed()
  • toOptionArray()