60 \
Magento\Framework\Event\ManagerInterface $eventManager,
61 \
Magento\Framework\Cache\FrontendInterface $configCache,
67 $this->_eventManager = $eventManager;
68 $this->_configCache = $configCache;
85 $isReassigned =
false;
89 if ($this->_storeManager->isSingleStoreMode()) {
96 $this->_configCache->clean();
97 $this->_layoutCache->clean();
100 $this->_eventManager->dispatch(
101 'assign_theme_to_stores_after',
117 return $this->_configData->getCollection()->addFieldToFilter(
140 $this->_configWriter->delete($configPath, $scope,
$config->getScopeId());
141 $isReassigned =
true;
161 $this->_configWriter->save($configPath, $themeId, $scope,
$storeId);
162 $isReassigned =
true;
179 $isReassigned =
true;
_getAssignedScopesCollection($scope, $configPath)
_unassignThemeFromStores($themeId, $stores, $scope, &$isReassigned)
_assignThemeToStores($themeId, $stores, $scope, &$isReassigned)
assignToStore( $theme, array $stores=[], $scope=\Magento\Store\Model\ScopeInterface::SCOPE_STORES)
_assignThemeToDefaultScope($themeId, &$isReassigned)
__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)