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 
9 {
13  protected $_scopeConfig;
14 
20  public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
21  {
22  $this->_scopeConfig = $scopeConfig;
23  }
24 
31  public function getValue($path)
32  {
33  return $this->_scopeConfig->getValue($path, \Magento\Store\Model\ScopeInterface::SCOPE_STORE);
34  }
35 }
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
Definition: Config.php:20