Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Config.php
Go to the documentation of this file.
1 <?php
9 
10 class Config implements ConfigInterface
11 {
15  protected $_dataStorage;
16 
20  public function __construct(\Magento\Framework\Cache\Config\Data $dataStorage)
21  {
22  $this->_dataStorage = $dataStorage;
23  }
24 
30  public function getTypes()
31  {
32  return $this->_dataStorage->get('types', []);
33  }
34 
41  public function getType($type)
42  {
43  return $this->_dataStorage->get('types/' . $type, []);
44  }
45 }
$type
Definition: item.phtml:13
__construct(\Magento\Framework\Cache\Config\Data $dataStorage)
Definition: Config.php:20