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 (\Magento\Framework\Cache\Config\Data $dataStorage)
 
 getTypes ()
 
 getType ($type)
 

Protected Attributes

 $_dataStorage
 

Detailed Description

Definition at line 10 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Framework\Cache\Config\Data  $dataStorage)
Parameters
\Magento\Framework\Cache\Config\Data$dataStorage

Definition at line 20 of file Config.php.

21  {
22  $this->_dataStorage = $dataStorage;
23  }

Member Function Documentation

◆ getType()

getType (   $type)

{inheritdoc}

Parameters
string$type
Returns
array

Implements ConfigInterface.

Definition at line 41 of file Config.php.

42  {
43  return $this->_dataStorage->get('types/' . $type, []);
44  }
$type
Definition: item.phtml:13

◆ getTypes()

getTypes ( )

{inheritdoc}

Returns
array

Implements ConfigInterface.

Definition at line 30 of file Config.php.

31  {
32  return $this->_dataStorage->get('types', []);
33  }

Field Documentation

◆ $_dataStorage

$_dataStorage
protected

Definition at line 15 of file Config.php.


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