You are here

public function ScssCompilerService::getOption in SCSS/Less Compiler 8

Gets a specific option.

Parameters

string $option: The name of the option.

Return value

mixed The value for a specific option, or NULL if it does not exist.

Overrides ScssCompilerInterface::getOption

File

src/ScssCompilerService.php, line 187

Class

ScssCompilerService
Defines a class for scss compiler service.

Namespace

Drupal\scss_compiler

Code

public function getOption($option) {
  if (!is_string($option)) {
    return NULL;
  }
  return $this->config
    ->get($option);
}