Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\App\Config\ValueInterface $configData, \Magento\Framework\App\Config\Storage\WriterInterface $configWriter, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\Cache\FrontendInterface $configCache, \Magento\Framework\Cache\FrontendInterface $layoutCache) | |
assignToStore ( $theme, array $stores=[], $scope=\Magento\Store\Model\ScopeInterface::SCOPE_STORES) | |
Protected Member Functions | |
_getAssignedScopesCollection ($scope, $configPath) | |
_unassignThemeFromStores ($themeId, $stores, $scope, &$isReassigned) | |
_assignThemeToStores ($themeId, $stores, $scope, &$isReassigned) | |
_assignThemeToDefaultScope ($themeId, &$isReassigned) | |
Protected Attributes | |
$_configWriter | |
$_configData | |
$_storeManager | |
$_eventManager | |
$_configCache | |
$_layoutCache | |
Definition at line 14 of file Config.php.
__construct | ( | \Magento\Framework\App\Config\ValueInterface | $configData, |
\Magento\Framework\App\Config\Storage\WriterInterface | $configWriter, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Framework\Event\ManagerInterface | $eventManager, | ||
\Magento\Framework\Cache\FrontendInterface | $configCache, | ||
\Magento\Framework\Cache\FrontendInterface | $layoutCache | ||
) |
\Magento\Framework\App\Config\ValueInterface | $configData | |
\Magento\Framework\App\Config\Storage\WriterInterface | $configWriter | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Framework\Event\ManagerInterface | $eventManager | |
\Magento\Framework\Cache\FrontendInterface | $configCache | |
\Magento\Framework\Cache\FrontendInterface | $layoutCache |
Definition at line 56 of file Config.php.
|
protected |
Assign theme to default scope
string | $themeId | |
bool | &$isReassigned |
Definition at line 175 of file Config.php.
|
protected |
Assign given theme to stores
string | $themeId | |
array | $stores | |
string | $scope | |
bool | &$isReassigned |
Definition at line 156 of file Config.php.
|
protected |
Get assigned scopes collection of a theme
string | $scope | |
string | $configPath |
Definition at line 115 of file Config.php.
|
protected |
Unassign given theme from stores that were unchecked
string | $themeId | |
array | $stores | |
string | $scope | |
bool | &$isReassigned |
Definition at line 135 of file Config.php.
assignToStore | ( | $theme, | |
array | $stores = [] , |
||
$scope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES |
|||
) |
Assign theme to the stores
\Magento\Framework\View\Design\ThemeInterface | $theme | |
array | $stores | |
string | $scope |
Definition at line 80 of file Config.php.
|
protected |
Definition at line 41 of file Config.php.
|
protected |
Definition at line 24 of file Config.php.
|
protected |
Definition at line 19 of file Config.php.
|
protected |
Definition at line 36 of file Config.php.
|
protected |
Definition at line 46 of file Config.php.
|
protected |
Definition at line 29 of file Config.php.