public function RefineableCompilerContext::setOption in Compiler 1.0.x
Set a specific option to use for this context.
Parameters
string $name: The name of the option to set.
mixed $value: The value to set for the option.
Return value
static The object itself for chaining.
Overrides RefineableCompilerContextInterface::setOption
File
- src/
RefineableCompilerContext.php, line 73
Class
- RefineableCompilerContext
- A refineable compiler context used to define a compilation.
Namespace
Drupal\compilerCode
public function setOption(string $name, $value) : self {
$this->options[$name] = $value;
return $this;
}