Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
isSetFlag ($path, $scopeType=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) | |
getValue ($path, $scopeType=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) | |
setValue ( $path, $value, $scopeType=\Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) | |
clean () | |
Additional Inherited Members | |
![]() | |
const | SCOPE_TYPE_DEFAULT = 'default' |
Definition at line 18 of file MutableScopeConfig.php.
clean | ( | ) |
Clean app config cache
string | null | $type |
Definition at line 62 of file MutableScopeConfig.php.
getValue | ( | $path, | |
$scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT , |
|||
$scopeCode = null |
|||
) |
Retrieve config value by path and scope.
string | $path | The path through the tree of configuration values, e.g., 'general/store_information/name' |
string | $scopeType | The scope to use to determine config value, e.g., 'store' or 'default' |
null | string | $scopeCode |
Implements ScopeConfigInterface.
Definition at line 39 of file MutableScopeConfig.php.
isSetFlag | ( | $path, | |
$scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT , |
|||
$scopeCode = null |
|||
) |
string | $path | |
string | $scopeType | |
null | $scopeCode |
Implements ScopeConfigInterface.
Definition at line 31 of file MutableScopeConfig.php.
setValue | ( | $path, | |
$value, | |||
$scopeType = \Magento\Framework\App\Config\ScopeConfigInterface::SCOPE_TYPE_DEFAULT , |
|||
$scopeCode = null |
|||
) |
Set config value in the corresponding config scope
string | $path | |
mixed | $value | |
string | $scopeType | |
null | string | $scopeCode |
Implements MutableScopeConfigInterface.
Definition at line 47 of file MutableScopeConfig.php.