public function Twig_Node::__construct

Constructor.

The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']).

Parameters

array $nodes An array of named nodes:

array $attributes An array of attributes (should not be nodes):

integer $lineno The line number:

string $tag The tag name associated with the Node:

33 calls to Twig_Node::__construct()
Twig_Node_AutoEscape::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/AutoEscape.php
Constructor.
Twig_Node_Block::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/Block.php
Constructor.
Twig_Node_BlockReference::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/BlockReference.php
Constructor.
Twig_Node_Do::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/Do.php
Constructor.
Twig_Node_Expression_Array::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Array.php
Constructor.

... See full list

33 methods override Twig_Node::__construct()
Twig_Node_AutoEscape::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/AutoEscape.php
Constructor.
Twig_Node_Block::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/Block.php
Constructor.
Twig_Node_BlockReference::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/BlockReference.php
Constructor.
Twig_Node_Do::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/Do.php
Constructor.
Twig_Node_Expression_Array::__construct in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Array.php
Constructor.

... See full list

File

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

Class

Twig_Node
Represents a node in the AST.

Code

public function __construct(array $nodes = array(), array $attributes = array(), $lineno = 0, $tag = null) {
  $this->nodes = $nodes;
  $this->attributes = $attributes;
  $this->lineno = $lineno;
  $this->tag = $tag;
}