protected function Twig_Node_Embed::addGetTemplate in Translation template extractor 7.3
Same name and namespace in other branches
- 6.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->loadTemplate(')
->string($this
->getAttribute('filename'))
->raw(', ')
->repr($compiler
->getFilename())
->raw(', ')
->repr($this
->getLine())
->raw(', ')
->string($this
->getAttribute('index'))
->raw(')');
}