Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ThemeId.php
Go to the documentation of this file.
1 <?php
8 
16 {
20  protected $_resourceModel;
21 
25  public function __construct(\Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $widgetResourceModel)
26  {
27  $this->_resourceModel = $widgetResourceModel->create();
28  }
29 
33  public function toOptionArray()
34  {
35  return $this->_resourceModel->toOptionHash();
36  }
37 }
__construct(\Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $widgetResourceModel)
Definition: ThemeId.php:25