You are here

public function CompilerContext::getInputs in Compiler 1.0.x

Get an interator containing the compiler inputs.

The resulting iterator will contain a copy of the input array at the time when this method was invoked. The iterator will flatten the structure of the input array and only return valid input values.

For refineable contexts, this method should be used for retrieving inputs unless the input array needs to be modified in some way.

Return value

\RecursiveCallbackFilterIterator An interator containing the compiler inputs.

Overrides CompilerContextInterface::getInputs

File

src/CompilerContext.php, line 107

Class

CompilerContext
A compiler context used to define a compilation.

Namespace

Drupal\compiler

Code

public function getInputs() : \RecursiveCallbackFilterIterator {
  return $this
    ->createIteratorForInputs($this->inputs);
}