Definition at line 8 of file Scope.php.
◆ __construct()
Constructor
- Parameters
-
\Magento\Framework\App\AreaList | $areaList | |
string | $defaultScope | |
Definition at line 37 of file Scope.php.
39 $this->_defaultScope = $this->_currentScope = $defaultScope;
40 $this->_areaList = $areaList;
◆ getAllScopes()
Retrieve list of available config scopes
- Returns
- string[]
Implements ScopeListInterface.
Definition at line 69 of file Scope.php.
71 $codes = $this->_areaList->getCodes();
72 array_unshift($codes, $this->_defaultScope);
◆ getCurrentScope()
◆ setCurrentScope()
setCurrentScope |
( |
|
$scope | ) |
|
Set current configuration scope
- Parameters
-
- Returns
- void
Implements ScopeInterface.
Definition at line 59 of file Scope.php.
61 $this->_currentScope = $scope;
◆ $_areaList
◆ $_currentScope
◆ $_defaultScope
The documentation for this class was generated from the following file: