You are here

protected function Twig_Node_Include::addGetTemplate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Node/Include.php \Twig_Node_Include::addGetTemplate()
1 call to Twig_Node_Include::addGetTemplate()
Twig_Node_Include::compile in vendor/twig/twig/lib/Twig/Node/Include.php
Compiles the node to PHP.
1 method overrides Twig_Node_Include::addGetTemplate()
Twig_Node_Embed::addGetTemplate in vendor/twig/twig/lib/Twig/Node/Embed.php

File

vendor/twig/twig/lib/Twig/Node/Include.php, line 56

Class

Twig_Node_Include
Represents an include node.

Code

protected function addGetTemplate(Twig_Compiler $compiler) {
  $compiler
    ->write('$this->loadTemplate(')
    ->subcompile($this
    ->getNode('expr'))
    ->raw(', ')
    ->repr($compiler
    ->getFilename())
    ->raw(', ')
    ->repr($this
    ->getLine())
    ->raw(')');
}