public function ScssCompilerService::getVariables in SCSS/Less Compiler 8
Returns altering variables.
Return value
\Drupal\scss_compiler\ScssCompilerAlterStorage A storage with altering variables.
Overrides ScssCompilerInterface::getVariables
See also
hook_scss_compiler_variables_alter()
File
- src/
ScssCompilerService.php, line 414
Class
- ScssCompilerService
- Defines a class for scss compiler service.
Namespace
Drupal\scss_compilerCode
public function getVariables() {
if (isset($this->variables)) {
return $this->variables;
}
$this->variables = new ScssCompilerAlterStorage($this);
$this->moduleHandler
->alter('scss_compiler_variables', $this->variables);
$activeTheme = $this->themeManager
->getActiveTheme();
$this->themeManager
->alterForTheme($activeTheme, 'scss_compiler_variables', $this->variables);
return $this->variables;
}