You are here

public function RefineableCompilerContext::setData in Compiler 1.0.x

Set the user-defined data to use for this context.

Parameters

mixed $data: The user-defined data to use for this context.

Return value

static The object itself for chaining.

Overrides RefineableCompilerContextInterface::setData

File

src/RefineableCompilerContext.php, line 65

Class

RefineableCompilerContext
A refineable compiler context used to define a compilation.

Namespace

Drupal\compiler

Code

public function setData($data) : self {
  $this->data = $data;
  return $this;
}