You are here

protected function Scssphp::set in SCSS/Less Compiler 8

Allows override variables without !default flag.

File

src/Plugin/ScssCompiler/Scssphp.php, line 58

Class

Scssphp
Extends ScssPhp Compiler.

Namespace

Drupal\scss_compiler\Plugin\ScssCompiler

Code

protected function set($name, $value, $shadow = FALSE, Environment $env = NULL, $valueUnreduced = NULL) {
  if (isset($this->registeredVars[$name])) {
    $store = $this
      ->getStoreEnv()->store;
    if (isset($store[$name])) {
      $value = $store[$name];
    }
  }
  parent::set($name, $value, $shadow, $env, $valueUnreduced);
}