Website
Magento\Store\Model\Website
What it does
The Website model represents a Magento website entity, which is the top level of the store hierarchy (Website > Store Group > Store View).
Developers use this class to manage website data, retrieve associated store groups and stores, handle website-specific configurations, and work with website-level currency settings.
It's commonly used when building multi-website functionality or managing store scope configurations.
Public Methods
- load()
- getConfig()
- setGroups()
- getGroupCollection()
- getGroups()
- getGroupIds()
- getGroupsCount()
- getDefaultGroup()
- setStores()
- getStoreCollection()
- getStores()
- getStoreIds()
- getStoreCodes()
- getStoresCount()
- isCanDelete()
- getWebsiteGroupStore()
- getDefaultGroupId()
- setDefaultGroupId()
- getCode()
- setCode()
- getName()
- setName()
- beforeDelete()
- afterDelete()
- afterSave()
- getBaseCurrencyCode()
- getBaseCurrency()
- getDefaultStore()
- getDefaultStoresSelect()
- isReadOnly()
- getIdentities()
- getCacheTags()
- getScopeType()
- getScopeTypeName()
- getExtensionAttributes()
- setExtensionAttributes()