Model
Store
Magento\Store\Model\Store
What it does
The Store model represents a store view in Magento 2's multi-store architecture.
Developers use this class to retrieve store-specific configuration, URLs, currency codes, and information about the store's relationship to websites and store groups.
It's essential when working with store-level data, building URLs with store context, or managing currency and locale-specific functionality.
Public Methods
- load()
- getCode()
- setCode()
- getName()
- setName()
- getConfig()
- setWebsite()
- getWebsite()
- getUrl()
- getBaseUrl()
- getBaseMediaDir()
- getBaseStaticDir()
- isUseStoreInUrl()
- getId()
- isFrontUrlSecure()
- isUrlSecure()
- isCurrentlySecure()
- getBaseCurrencyCode()
- getBaseCurrency()
- getDefaultCurrencyCode()
- getDefaultCurrency()
- setCurrentCurrencyCode()
- getCurrentCurrencyCode()
- getAvailableCurrencyCodes()
- getAllowedCurrencies()
- getCurrentCurrency()
- getCurrentCurrencyRate()
- getRootCategoryId()
- setGroup()
- getGroup()
- getWebsiteId()
- afterSave()
- setWebsiteId()
- getGroupId()
- getStoreGroupId()
- setStoreGroupId()
- getIsActive()
- setIsActive()
- getDefaultGroupId()
- isCanDelete()
- isDefault()
- getCurrentUrl()
- isActive()
- beforeDelete()
- afterDelete()
- resetConfig()
- isReadOnly()
- getFrontendName()
- getFormattedAddress()
- getIdentities()
- getCacheTags()
- getStorePath()
- getScopeType()
- getScopeTypeName()
- getExtensionAttributes()
- setExtensionAttributes()
- _resetState()