Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Config\ScopeInterface $configScope, $mode=self::MODE_DEFAULT) | |
getMode () | |
setIsDownloader ($flag=true) | |
setAreaCode ($code) | |
getAreaCode () | |
isAreaCodeEmulated () | |
emulateAreaCode ($areaCode, $callback, $params=[]) | |
Data Fields | |
const | PARAM_MODE = 'MAGE_MODE' |
const | MODE_DEVELOPER = 'developer' |
const | MODE_PRODUCTION = 'production' |
const | MODE_DEFAULT = 'default' |
Protected Attributes | |
$_appMode | |
$_isDownloader = false | |
$_updateMode = false | |
$_configScope | |
$_areaCode | |
$_isAreaCodeEmulated = false | |
Application state flags. Can be used to retrieve current application mode and current area.
Note: Area code communication and emulation will be removed from this class.
@api
__construct | ( | \Magento\Framework\Config\ScopeInterface | $configScope, |
$mode = self::MODE_DEFAULT |
|||
) |
#-
\Magento\Framework\Config\ScopeInterface | $configScope | |
string | $mode |
Definition at line 87 of file State.php.
emulateAreaCode | ( | $areaCode, | |
$callback, | |||
$params = [] |
|||
) |
isAreaCodeEmulated | ( | ) |
setAreaCode | ( | $code | ) |
setIsDownloader | ( | $flag = true | ) |