21 parent::__construct(array(), array(
'name' => $name),
$lineno,
$tag);
31 $compiler->
raw(sprintf(
"\$this->env->getExtension('%s')", $this->
getAttribute(
'name')));
Compiles a node to PHP code.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
getAttribute($name)
Gets an attribute.
Abstract class for all nodes that represents an expression.
raw($string)
Adds a raw string to the compiled code.
Represents an extension call node.
__construct($name, $lineno, $tag=null)