Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
ActionFactory Class Reference

Public Member Functions

 __construct (\Magento\Framework\ObjectManagerInterface $objectManager)
 
 create ($type, array $data=[])
 

Protected Attributes

 $_objectManager
 

Detailed Description

@api

Since
100.0.2

Definition at line 13 of file ActionFactory.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\ObjectManagerInterface  $objectManager)
Parameters
\Magento\Framework\ObjectManagerInterface$objectManager

Definition at line 23 of file ActionFactory.php.

24  {
25  $this->_objectManager = $objectManager;
26  }
$objectManager
Definition: bootstrap.php:17

Member Function Documentation

◆ create()

create (   $type,
array  $data = [] 
)

Create new action object

Parameters
string$type
array$data
Returns
\Magento\Rule\Model\Action\ActionInterface

Definition at line 35 of file ActionFactory.php.

36  {
37  return $this->_objectManager->create($type, $data);
38  }
$type
Definition: item.phtml:13

Field Documentation

◆ $_objectManager

$_objectManager
protected

Definition at line 18 of file ActionFactory.php.


The documentation for this class was generated from the following file: