Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getValue ($path, $scopeType=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) | |
isSetFlag ($path, $scopeType=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode=null) | |
Data Fields | |
const | SCOPE_TYPE_DEFAULT = 'default' |
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 |
Implemented in Config, MutableScopeConfig, and MutableScopeConfig.
isSetFlag | ( | $path, | |
$scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT , |
|||
$scopeCode = null |
|||
) |
Retrieve config flag 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 |
Implemented in Config, and MutableScopeConfig.
const SCOPE_TYPE_DEFAULT = 'default' |
Default scope type
Definition at line 20 of file ScopeConfigInterface.php.