|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Structures | |
| class | BaseTest |
| class | DataTest |
| class | InitialTest |
Public Member Functions | |
| __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) | |
Data Fields | |
| const | CACHE_TAG = 'CONFIG' |
Data Fields inherited from ScopeConfigInterface | |
| const | SCOPE_TYPE_DEFAULT = 'default' |
Class Config
Definition at line 17 of file Config.php.
| __construct | ( | ScopeCodeResolver | $scopeCodeResolver, |
| array | $types = [] |
||
| ) |
Config constructor.
| ScopeCodeResolver | $scopeCodeResolver | |
| array | $types |
Definition at line 40 of file Config.php.
| clean | ( | ) |
Invalidate cache by type Clean scopeCodeResolver
Definition at line 102 of file Config.php.
| get | ( | $configType, | |
$path = '', |
|||
$default = null |
|||
| ) |
Retrieve configuration.
('modules') - modules status configuration data ('scopes', 'websites/base') - base website data ('scopes', 'stores/default') - default store data
('system', 'default/web/seo/use_rewrites') - default system configuration data ('system', 'websites/base/web/seo/use_rewrites') - 'base' website system configuration data
('i18n', 'default/en_US') - translations for default store and 'en_US' locale
| string | $configType | |
| string | null | $path | |
| mixed | null | $default |
Definition at line 127 of file Config.php.
| getValue | ( | $path = null, |
|
$scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, |
|||
$scopeCode = null |
|||
| ) |
Retrieve config value by path and scope
| string | $path | |
| string | $scope | |
| null | string | $scopeCode |
Implements ScopeConfigInterface.
Definition at line 56 of file Config.php.
| isSetFlag | ( | $path, | |
$scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, |
|||
$scopeCode = null |
|||
| ) |
Retrieve config flag
| string | $path | |
| string | $scope | |
| null | string | $scopeCode |
Implements ScopeConfigInterface.
Definition at line 91 of file Config.php.
| const CACHE_TAG = 'CONFIG' |
Config cache tag
Definition at line 22 of file Config.php.