$nodes
$nodes :
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and the sandbox is activated.
When there is a simple Print statement, like {{ article }}, and if the sandbox is enabled, we need to check that the __toString() method is allowed if 'article' is an object.
compile(\Twig_Compiler $compiler)
\Twig_Compiler | $compiler |
__construct(array $nodes = array(), array $attributes = array(), integer $lineno, string $tag = null)
Constructor.
The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']).
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 |
getNode( $name) : \Twig_Node
$name |
removeNodeFilter(\Twig_Node $node) : \Twig_Node
Removes node filters.
This is mostly needed when another visitor adds filters (like the escaper one).
\Twig_Node | $node |