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 
13 class Config
14 {
18  protected $_dataStorage;
19 
23  public function __construct(\Magento\Framework\Config\DataInterface $dataStorage)
24  {
25  $this->_dataStorage = $dataStorage;
26  }
27 
34  public function getRenderersPerProduct($pageType)
35  {
36  return $this->_dataStorage->get("renderers/{$pageType}", []);
37  }
38 
44  public function getTotals()
45  {
46  return $this->_dataStorage->get('totals', []);
47  }
48 }
__construct(\Magento\Framework\Config\DataInterface $dataStorage)
Definition: Config.php:23