Group
Magento\Store\Model\Group
What it does
The Group class represents a store group in Magento 2's multi-store hierarchy, which sits between a website and individual stores.
Developers use this class to manage store groups, retrieve associated stores, access default stores by locale, and handle the root category assignment.
It's essential when working with multi-store configurations, managing store relationships, or implementing store-specific functionality.
Public Methods
- setStores()
- getStoreCollection()
- getStores()
- getStoreIds()
- getStoreCodes()
- getStoresCount()
- getDefaultStore()
- getDefaultStoreByLocale()
- getStoresByLocale()
- setWebsite()
- getWebsite()
- isCanDelete()
- getDefaultStoreId()
- setDefaultStoreId()
- getRootCategoryId()
- setRootCategoryId()
- getWebsiteId()
- setWebsiteId()
- beforeDelete()
- afterDelete()
- afterSave()
- isReadOnly()
- getIdentities()
- getCacheTags()
- getName()
- setName()
- getCode()
- setCode()
- getExtensionAttributes()
- setExtensionAttributes()
- getScopeType()
- getScopeTypeName()