|
| setValue ( $path, $value, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) |
|
| clean () |
|
| get ($configType, $path=null, $default=null) |
|
| __construct (ScopeCodeResolver $scopeCodeResolver, array $types=[]) |
|
| getValue ( $path=null, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) |
|
| isSetFlag ($path, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) |
|
| clean () |
|
| get ($configType, $path='', $default=null) |
|
Definition at line 18 of file Config.php.
◆ clean()
Flush all muted settings
- Returns
- void
Definition at line 118 of file Config.php.
121 $this->scopeCodeResolver =
null;
◆ get()
get |
( |
|
$configType, |
|
|
|
$path = null , |
|
|
|
$default = null |
|
) |
| |
Definition at line 128 of file Config.php.
131 if (!isset($this->data[$configType]) || $this->data[$configType]->getData(
$path) ===
null) {
132 return parent::get($configType,
$path, $default);
135 return $this->data[$configType]->getData(
$path);
◆ setValue()
Set config value in the corresponding config scope
- Parameters
-
string | $path | |
mixed | $value | |
string | $scope | |
null | string | $scopeCode | |
- Returns
- void
Definition at line 65 of file Config.php.
73 if ($scope ===
'store') {
75 }
elseif ($scope ===
'website') {
79 if (empty($scopeCode)) {
80 $scopeCode = $this->getScopeCodeResolver()->resolve($scope, $scopeCode);
83 $keys = explode(
'/',
$path);
85 $searchKeys = array_merge([$scope, $scopeCode], $keys);
87 $searchKeys = array_merge([$scope], $keys);
91 $this->setData(
$result,
'system');
elseif(isset( $params[ 'redirect_parent']))
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/Magento/TestFramework/App/Config.php