protected function Twig_Node_Include::addGetTemplate in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/Node/Include.php \Twig_Node_Include::addGetTemplate()
1 call to Twig_Node_Include::addGetTemplate()
- Twig_Node_Include::compile in vendor/
Twig/ Node/ Include.php - Compiles the node to PHP.
1 method overrides Twig_Node_Include::addGetTemplate()
- Twig_Node_Embed::addGetTemplate in vendor/
Twig/ Node/ Embed.php
File
- vendor/
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(')');
}