Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Theme.php
Go to the documentation of this file.
1 <?php
7 
10 
14 class Theme implements OptionSourceInterface
15 {
19  protected $themeList;
20 
27  {
28  $this->themeList = $themeList;
29  }
30 
36  public function toOptionArray()
37  {
38  $options[] = ['label' => 'Default', 'value' => ''];
39  return array_merge($options, $this->themeList->getLabels());
40  }
41 }
__construct(ListInterface $themeList)
Definition: Theme.php:26