You are here

public function Twig_Node_SandboxedPrint::__construct in Translation template extractor 6.3

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):

int $lineno The line number:

string $tag The tag name associated with the Node:

Overrides Twig_Node_Print::__construct

File

vendor/Twig/Node/SandboxedPrint.php, line 24

Class

Twig_Node_SandboxedPrint
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and the sandbox is activated.

Code

public function __construct(Twig_Node_Expression $expr, $lineno, $tag = null) {
  parent::__construct($expr, $lineno, $tag);
}