Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ActionFactory.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Rule\Model;
8 
14 {
18  protected $_objectManager;
19 
24  {
25  $this->_objectManager = $objectManager;
26  }
27 
35  public function create($type, array $data = [])
36  {
37  return $this->_objectManager->create($type, $data);
38  }
39 }
$objectManager
Definition: bootstrap.php:17
$type
Definition: item.phtml:13
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
create($type, array $data=[])