Your IP : 216.73.216.208
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Widget\Model\ResourceModel\Widget\Instance\Options;
/**
* Widget Instance Theme Id Options
*
* @deprecated 100.1.7 created new class that correctly loads theme options and whose name follows naming convention
* @see \Magento\Widget\Model\ResourceModel\Widget\Instance\Options\Themes
*/
class ThemeId implements \Magento\Framework\Option\ArrayInterface
{
/**
* @var \Magento\Widget\Model\Widget\Instance
*/
protected $_resourceModel;
/**
* @param \Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $widgetResourceModel
*/
public function __construct(\Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $widgetResourceModel)
{
$this->_resourceModel = $widgetResourceModel->create();
}
/**
* @return array
*/
public function toOptionArray()
{
return $this->_resourceModel->toOptionHash();
}
}