Twig_Node_Expression_ExtensionReference

Represents an extension call node.

Defined (1)

The class is defined in the following location(s).

/vendor/twig/twig/lib/Twig/Node/Expression/ExtensionReference.php  
  1. class Twig_Node_Expression_ExtensionReference extends Twig_Node_Expression 
  2. public function __construct($name, $lineno, $tag = null) 
  3. parent::__construct(array(), array('name' => $name), $lineno, $tag); 
  4.  
  5. public function compile(Twig_Compiler $compiler) 
  6. $compiler->raw(sprintf("\$this->env->getExtension('%s')", $this->getAttribute('name')));