You are here

public function CompilerContext::getOption in Compiler 1.0.x

Get a specific compiler plugin configuration option.

Parameters

string $name: The name of the option.

Return value

mixed A specific compiler plugin configuration option.

Overrides CompilerContextInterface::getOption

File

src/CompilerContext.php, line 114

Class

CompilerContext
A compiler context used to define a compilation.

Namespace

Drupal\compiler

Code

public function getOption($name) {
  if (!array_key_exists($name, $this->options)) {
    return NULL;
  }
  return $this->options[$name];
}