Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setIsSingleStoreModeAllowed ($value) | |
hasSingleStore () | |
isSingleStoreMode () | |
getStore ($storeId=null) | |
getStores ($withDefault=false, $codeKey=false) | |
getWebsite ($websiteId=null) | |
getWebsites ($withDefault=false, $codeKey=false) | |
reinitStores () | |
getDefaultStoreView () | |
getGroup ($groupId=null) | |
getGroups ($withDefault=false) | |
setCurrentStore ($store) | |
Data Fields | |
const | CONTEXT_STORE = 'store' |
const | PARAM_NAME = '___store' |
getDefaultStoreView | ( | ) |
Retrieve default store for default group and website
Implemented in StoreManager, and StoreManager.
getGroup | ( | $groupId = null | ) |
Retrieve application store group object
null | \Magento\Store\Api\Data\GroupInterface | string | $groupId |
Implemented in StoreManager, and StoreManager.
getGroups | ( | $withDefault = false | ) |
Prepare array of store groups
bool | $withDefault |
Implemented in StoreManager, and StoreManager.
getStore | ( | $storeId = null | ) |
Retrieve application store object
null | string | bool | int | \Magento\Store\Api\Data\StoreInterface | $storeId |
NoSuchEntityException | If given store doesn't exist. |
Implemented in StoreManager, and StoreManager.
Retrieve stores array
bool | $withDefault | |
bool | $codeKey |
Implemented in StoreManager, and StoreManager.
getWebsite | ( | $websiteId = null | ) |
Retrieve application website object
null | bool | int | string | \Magento\Store\Api\Data\WebsiteInterface | $websiteId |
Implemented in StoreManager, and StoreManager.
Get loaded websites
bool | $withDefault | |
bool | $codeKey |
Implemented in StoreManager, and StoreManager.
hasSingleStore | ( | ) |
isSingleStoreMode | ( | ) |
Check if system is run in the single store mode
Implemented in StoreManager, and StoreManager.
reinitStores | ( | ) |
setCurrentStore | ( | $store | ) |
Set current default store
string | $store |
Implemented in StoreManager, and StoreManager.
setIsSingleStoreModeAllowed | ( | $value | ) |
Allow or disallow single store mode
bool | $value |
Implemented in StoreManager, and StoreManager.
const CONTEXT_STORE = 'store' |
Store cache context
Definition at line 22 of file StoreManagerInterface.php.
const PARAM_NAME = '___store' |
The store GET Param name
Definition at line 27 of file StoreManagerInterface.php.