You are here

protected function Twig_Node_Embed::addGetTemplate in Translation template extractor 6.3

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

Overrides Twig_Node_Include::addGetTemplate

File

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

Class

Twig_Node_Embed
Represents an embed node.

Code

protected function addGetTemplate(Twig_Compiler $compiler) {
  $compiler
    ->write("\$this->env->loadTemplate(")
    ->string($this
    ->getAttribute('filename'))
    ->raw(', ')
    ->string($this
    ->getAttribute('index'))
    ->raw(")");
}