Skip to content

Commit f1a903c

Browse files
committed
Update appTheme.php
1 parent 48b0568 commit f1a903c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

appTheme.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ class Outslide extends \Magento\Framework\App\Http
1111
public function launch()
1212
{
1313
$this->showTableTheme();
14-
$this->setType(4);
15-
$this->setType(5);
16-
$this->setType(6);
17-
$this->setType(7);
18-
$this->setType(8);
19-
$this->setType(9);
14+
15+
$collections = $this->_objectManager->create('Magento\Theme\Model\Theme');
16+
$themes = $collections->getCollection()->addFieldToSelect('*');
17+
foreach ($themes as $theme) {
18+
$id = $theme->getData('theme_id');
19+
$this->setType($id);
20+
}
2021

2122
// $themesCollections = $this->_objectManager->create('Magento\Theme\Model\Theme\Collection');
2223
// $themesCollections->addConstraint(Collection::CONSTRAINT_AREA, Area::AREA_FRONTEND);

0 commit comments

Comments
 (0)