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

Public Member Functions

 __construct (\Magento\Framework\ObjectManagerInterface $objectManager)
 
 create ($arguments=[])
 

Protected Attributes

 $_objectManager
 

Detailed Description

Definition at line 8 of file EventFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 18 of file EventFactory.php.

19  {
20  $this->_objectManager = $objectManager;
21  }
$objectManager
Definition: bootstrap.php:17

Member Function Documentation

◆ create()

create (   $arguments = [])
Parameters
array$arguments
Returns
Event

Definition at line 27 of file EventFactory.php.

28  {
29  return $this->_objectManager->create(Event::class, $arguments);
30  }
$arguments

Field Documentation

◆ $_objectManager

$_objectManager
protected

Definition at line 13 of file EventFactory.php.


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