We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a4359c + e62a982 commit 7d87e43Copy full SHA for 7d87e43
Plugin/ThemeAdminhtmlSwitcherPlugin.php
@@ -5,6 +5,7 @@
5
use Magento\Framework\App\Config\ScopeConfigInterface;
6
use Magento\Store\Model\ScopeInterface;
7
use Magento\Theme\Model\View\Design;
8
+use Magento\Framework\App\Area;
9
10
class ThemeAdminhtmlSwitcherPlugin
11
{
@@ -30,6 +31,10 @@ public function __construct(
30
31
*/
32
public function beforeSetDesignTheme(Design $subject, $themeId = null)
33
34
+ if ($subject->getArea() !== Area::AREA_ADMINHTML) {
35
+ return [$themeId];
36
+ }
37
+
38
$isEnabled = $this->scopeConfig->isSetFlag(
39
'admin/system_admin_design/enable_theme_adminhtml_m137',
40
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
0 commit comments