12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\View\Design\Theme\Label;
- use Magento\Framework\Option\ArrayInterface;
- class Options implements ArrayInterface
- {
- /**
- * @var ListInterface
- */
- protected $list;
- /**
- * @param ListInterface $list
- */
- public function __construct(ListInterface $list)
- {
- $this->list = $list;
- }
- /**
- * Return list of themes
- *
- * @return array
- */
- public function toOptionArray()
- {
- return $this->list->getLabels();
- }
- }
|