src/Twig/TerrificCompiler.php
/**
   * Compiles given variable as a Twig context variable.
   *
   * @param \Namics\Terrific\Twig\Data\VariableNameAndArrayKeysPair $variableNameAndArrayKeysPair
   *   Object containing the variable name and optionally array keys.
   * @param string $contextVariable
   *   The PHP variable to use as base for adding the array keys.
   */
Compiles given variable as a Twig context variable.
Compiles given variable as a Twig context variable .
protected function compileAsContextVariable(VariableNameAndArrayKeysPair $variableNameAndArrayKeysPair, string $contextVariable): void {
    $contextArrayKeys = $variableNameAndArrayKeysPair->toTwigContextArrayKeysString();
    $this->getTwigCompiler()->raw($contextVariable . $contextArrayKeys);
  }
protected function compileAsContextVariable ( VariableNameAndArrayKeysPair $ variableNameAndArrayKeysPair , string $ contextVariable ) : void { $ contextArrayKeys = $ variableNameAndArrayKeysPair -> toTwigContextArrayKeysString ( ) ; $ this -> getTwigCompiler ( ) -> raw ( $ contextVariable . $ contextArrayKeys ) ; }
Compiles given variable as a Twig context variable.
Compiles given variable as a Twig context variable .