You are here

public function RefineableCompilerContext::setCompiler in Compiler 1.0.x

Set the machine name of the compiler plugin to use for this context.

Parameters

string $compiler: The machine name of the compiler plugin to use for this context.

Return value

static The object itself for chaining.

Overrides RefineableCompilerContextInterface::setCompiler

File

src/RefineableCompilerContext.php, line 57

Class

RefineableCompilerContext
A refineable compiler context used to define a compilation.

Namespace

Drupal\compiler

Code

public function setCompiler(string $compiler) : self {
  $this->compiler = $compiler;
  return $this;
}