You are here

public function RefineableCompilerContext::offsetSet in Compiler 1.0.x

File

src/RefineableCompilerContext.php, line 38

Class

RefineableCompilerContext
A refineable compiler context used to define a compilation.

Namespace

Drupal\compiler

Code

public function offsetSet($offset, $value) : void {
  if (!is_null($offset)) {
    $this->inputs[$offset] = $value;
  }
  else {
    $this->inputs[] = $value;
  }
}