50 $area = $this->appState->getAreaCode();
51 if ($this->design->getDesignTheme()->getArea() == $area || $this->design->getArea() == $area) {
52 return $this->design->getDesignTheme();
56 $themeCollection = $this->themeFactory->create();
57 $themeIdentifier = $this->design->getConfigurationDesignTheme($area);
58 if (is_numeric($themeIdentifier)) {
59 $result = $themeCollection->getItemById($themeIdentifier);
62 $result = $themeCollection->getThemeByFullPath($themeFullPath);
__construct(\Magento\Framework\App\State $appState, \Magento\Framework\View\DesignInterface $design, \Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $themeFactory)