public function ScssCompilerAlterStorage::get in SCSS/Less Compiler 8
Get data by module/theme name.
Parameters
string $namespace: Module/theme name. By default global scope.
Return value
array Array with data.
1 call to ScssCompilerAlterStorage::get()
- ScssCompilerAlterStorage::getAll in src/
ScssCompilerAlterStorage.php - Returns merged data in all scopes.
File
- src/
ScssCompilerAlterStorage.php, line 80
Class
- ScssCompilerAlterStorage
- Collects alter data.
Namespace
Drupal\scss_compilerCode
public function get($namespace = '_global') {
if (!isset($this->storage['namespace'][$namespace])) {
return [];
}
return $this->storage['namespace'][$namespace];
}