public function Twig_Node::getNode

Gets a node by name.

Parameters

string The node name:

Return value

Twig_Node A Twig_Node instance

21 calls to Twig_Node::getNode()
Twig_Node_AutoEscape::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/AutoEscape.php
Compiles the node to PHP.
Twig_Node_Expression_Filter::compileFilter in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Filter.php
Twig_Node_Expression_Filter_Default::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php
Compiles the node to PHP.
Twig_Node_Expression_Function::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Function.php
Compiles the node to PHP.
Twig_Node_Expression_GetAttr::compile in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/GetAttr.php
Compiles the node to PHP.

... See full list

File

drupal/core/vendor/twig/twig/lib/Twig/Node.php, line 188

Class

Twig_Node
Represents a node in the AST.

Code

public function getNode($name) {
  if (!array_key_exists($name, $this->nodes)) {
    throw new Twig_Error_Runtime(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
  }
  return $this->nodes[$name];
}