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
7 
8 class Config implements ConfigInterface
9 {
13  protected $configData;
14 
18  public function __construct(Config\Data $configData)
19  {
20  $this->configData = $configData;
21  }
22 
28  public function getViews()
29  {
30  return $this->configData->get();
31  }
32 
39  public function getView($viewId)
40  {
41  return $this->configData->get($viewId);
42  }
43 }
__construct(Config\Data $configData)
Definition: Config.php:18