src/Twig/TerrificCompiler.php
/**
   * Compiles and adds NameExpression as a variable.
   *
   * To the Terrific Twig context.
   *
   * @param \Twig\Node\Expression\NameExpression $expression
   *   The expression to compile.
   * @param string|null $variableDoesNotExistErrorMessage
   *   Custom error message that is used as exception message
   *   when the given variable does not exist.
   */
Compiles and adds NameExpression as a variable.
To the Terrific Twig context.

@param \Twig\Node\Expression\NameExpression $expression
The expression to compile.
@param string|null $variableDoesNotExistErrorMessage
Custom error message that is used as exception message
when the given variable does not exist.
Compiles and adds NameExpression as a variable . To the Terrific Twig context . @param \ Twig \ Node \ Expression \ NameExpression $expression The expression to compile . @param string|null $variableDoesNotExistErrorMessage Custom error message that is used as exception message when the given variable does not exist .
public function compileAndMergeNameExpressionToContext(NameExpression $expression, ?string $variableDoesNotExistErrorMessage = NULL): void {
    $variableName = $this->getExpressionHandler()->getVariableNameFromNameExpression($expression);
    $this->compileAndMergeVariableToContext(
      VariableNameAndArrayKeysPair::createVariable($variableName),
      $variableDoesNotExistErrorMessage
    );
  }
public function compileAndMergeNameExpressionToContext ( NameExpression $ expression , ? string $ variableDoesNotExistErrorMessage = NULL ) : void { $ variableName = $ this -> getExpressionHandler ( ) -> getVariableNameFromNameExpression ( $ expression ) ; $ this -> compileAndMergeVariableToContext ( VariableNameAndArrayKeysPair :: createVariable ( $ variableName ) , $ variableDoesNotExistErrorMessage ) ; }
Compiles and adds NameExpression as a variable.
Compiles and adds NameExpression as a variable .