You are here

protected function Twig_Node_Embed::addGetTemplate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Node/Embed.php \Twig_Node_Embed::addGetTemplate()

Overrides Twig_Node_Include::addGetTemplate

File

vendor/twig/twig/lib/Twig/Node/Embed.php, line 28

Class

Twig_Node_Embed
Represents an embed node.

Code

protected function addGetTemplate(Twig_Compiler $compiler) {
  $compiler
    ->write('$this->loadTemplate(')
    ->string($this
    ->getAttribute('filename'))
    ->raw(', ')
    ->repr($compiler
    ->getFilename())
    ->raw(', ')
    ->repr($this
    ->getLine())
    ->raw(', ')
    ->string($this
    ->getAttribute('index'))
    ->raw(')');
}