Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MutableScopeConfig.php
Go to the documentation of this file.
1 <?php
9 namespace Magento\Framework\App;
10 
13 
18 {
22  private $data;
23 
27  public function getValue(
28  $path = null,
30  $scopeCode = null
31  ) {
32  if (isset($this->data[$scope][$scopeCode][$path])) {
33  return $this->data[$scope][$scopeCode][$path];
34  }
35 
36  return parent::getValue($path, $scope, $scopeCode);
37  }
38 
48  public function setValue(
49  $path,
50  $value,
52  $scopeCode = null
53  ) {
54  $this->data[$scope][$scopeCode][$path] = $value;
55  }
56 
60  public function clean()
61  {
62  $this->data = null;
63  parent::clean();
64  }
65 }
$value
Definition: gender.phtml:16
getValue( $path=null, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)
setValue( $path, $value, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null)