File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,13 @@ class Outslide extends \Magento\Framework\App\Http
11
11
public function launch ()
12
12
{
13
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 );
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
+ }
20
21
21
22
// $themesCollections = $this->_objectManager->create('Magento\Theme\Model\Theme\Collection');
22
23
// $themesCollections->addConstraint(Collection::CONSTRAINT_AREA, Area::AREA_FRONTEND);
You can’t perform that action at this time.
0 commit comments