We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b0568 commit f1a903cCopy full SHA for f1a903c
appTheme.php
@@ -11,12 +11,13 @@ class Outslide extends \Magento\Framework\App\Http
11
public function launch()
12
{
13
$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);
+
+ $collections = $this->_objectManager->create('Magento\Theme\Model\Theme');
+ $themes = $collections->getCollection()->addFieldToSelect('*');
+ foreach ($themes as $theme) {
+ $id = $theme->getData('theme_id');
+ $this->setType($id);
20
+ }
21
22
// $themesCollections = $this->_objectManager->create('Magento\Theme\Model\Theme\Collection');
23
// $themesCollections->addConstraint(Collection::CONSTRAINT_AREA, Area::AREA_FRONTEND);
0 commit comments