Log in
Model

Store

Magento\Store\Model\System\Store

What it does

This class provides a centralized way to retrieve and organize store hierarchy data (websites, store groups, and store views) in various formats for use in forms, dropdowns, and other UI components.

Developers use it when building admin interfaces or system configuration pages that need to display or filter by store scope, such as product assignment forms or configuration settings that can be applied at different store levels.

Public Methods

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