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
11 
14 
19 class Theme extends AbstractSource
20 {
24  protected $themeLabel;
25 
29  public function __construct(Label $themeLabel)
30  {
31  $this->themeLabel = $themeLabel;
32  }
33 
40  public function getAllOptions($withEmpty = true)
41  {
42  $label = $withEmpty ? __('-- Please Select --') : $withEmpty;
43  return $this->_options = $this->themeLabel->getLabelsCollection($label);
44  }
45 }
__()
Definition: __.php:13
$label
Definition: details.phtml:21
__construct(Label $themeLabel)
Definition: Theme.php:29