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 (Config\Data $configData)
 
 getIndexers ()
 
 getIndexer ($indexerId)
 

Protected Attributes

 $configData
 

Detailed Description

Definition at line 10 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Config\Data  $configData)
Parameters
Config\Data$configData

Definition at line 20 of file Config.php.

21  {
22  $this->configData = $configData;
23  }

Member Function Documentation

◆ getIndexer()

getIndexer (   $indexerId)

Get indexer by ID

Parameters
string$indexerId
Returns
array

Implements ConfigInterface.

Definition at line 41 of file Config.php.

42  {
43  return $this->configData->get($indexerId) ?: [];
44  }

◆ getIndexers()

getIndexers ( )

Get indexers list

Returns
array[]

Implements ConfigInterface.

Definition at line 30 of file Config.php.

31  {
32  return $this->configData->get();
33  }

Field Documentation

◆ $configData

$configData
protected

Definition at line 15 of file Config.php.


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