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.
1 parent e0df380 commit f5f6f62Copy full SHA for f5f6f62
1 file changed
Config/Source/ThemePathOptions.php
@@ -2,6 +2,7 @@
2
3
namespace Loki\Theme\Config\Source;
4
5
+use Magento\Framework\App\Area;
6
use Magento\Framework\Data\OptionSourceInterface;
7
use Magento\Framework\View\Design\Theme\ThemeList;
8
use Magento\Framework\View\Design\ThemeInterface;
@@ -18,6 +19,10 @@ public function toOptionArray()
18
19
$options = [];
20
foreach ($this->themeList->getItems() as $theme) {
21
/** @var ThemeInterface $theme */
22
+ if ($theme->getArea() !== Area::AREA_FRONTEND) {
23
+ continue;
24
+ }
25
+
26
$options[] = [
27
'value' => $theme->getThemePath(),
28
'label' => $theme->getThemePath(),
0 commit comments