Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Config Class Reference
Inheritance diagram for Config:
ConfigInterface

Public Member Functions

 __construct (Data $dataContainer)
 
 getObservers ($eventName)
 

Protected Attributes

 $_dataContainer
 

Additional Inherited Members

- Data Fields inherited from ConfigInterface
const TYPE_CORE = 'core'
 
const TYPE_CUSTOM = 'custom'
 

Detailed Description

Definition at line 12 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Data  $dataContainer)
Parameters
Data$dataContainer

Definition at line 24 of file Config.php.

25  {
26  $this->_dataContainer = $dataContainer;
27  }

Member Function Documentation

◆ getObservers()

getObservers (   $eventName)

Get observers by event name

Parameters
string$eventName
Returns
null|array|mixed

Implements ConfigInterface.

Definition at line 35 of file Config.php.

36  {
37  return $this->_dataContainer->get($eventName, []);
38  }

Field Documentation

◆ $_dataContainer

$_dataContainer
protected

Definition at line 19 of file Config.php.


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