12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Widget\Model\Widget\Instance;
- class OptionsFactory
- {
- /**
- * @var \Magento\Framework\ObjectManagerInterface
- */
- protected $_objectManager;
- /**
- * @param \Magento\Framework\ObjectManagerInterface $objectManager
- */
- public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager)
- {
- $this->_objectManager = $objectManager;
- }
- /**
- * Create new action object
- *
- * @param string $type
- * @param array $data
- * @return \Magento\Framework\Option\ArrayInterface
- */
- public function create($type, array $data = [])
- {
- return $this->_objectManager->create($type, $data);
- }
- }
|