class TwigNodeExpressionNameReference

A class that defines a reference to the name for all nodes that represent expressions.

Hierarchy

Expanded class hierarchy of TwigNodeExpressionNameReference

See also

core\vendor\twig\twig\lib\Twig\Node\Expression\Name.php

File

drupal/core/lib/Drupal/Core/Template/TwigNodeExpressionNameReference.php, line 16
Definition of Drupal\Core\Template\TwigNodeExpressionNameReference

Namespace

Drupal\Core\Template
View source
class TwigNodeExpressionNameReference extends \Twig_Node_Expression_Name {

  /**
   * Overrides Twig_Node_Expression_Name::compile().
   */
  public function compile(\Twig_Compiler $compiler) {
    $name = $this
      ->getAttribute('name');
    $compiler
      ->raw('$this->getContextReference($context, ')
      ->string($name)
      ->raw(')');
  }

}

Members