28 ->write(
'echo $this->env->getExtension(\'Twig_Extension_Sandbox\')->ensureToStringAllowed(')
29 ->subcompile($this->
getNode(
'expr'))
51 class_alias(
'Twig_Node_SandboxedPrint',
'Twig\Node\SandboxedPrintNode',
false);
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Represents a node in the AST.
Twig_Node_SandboxedPrint adds a check for the __toString() method when the variable is an object and ...
removeNodeFilter(Twig_Node $node)
Removes node filters.
Represents a node that outputs an expression.
addDebugInfo(Twig_NodeInterface $node)
Adds debugging information.