protected function Twig_Node_Module::compileGetTemplateName in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Node/Module.php \Twig_Node_Module::compileGetTemplateName()
1 call to Twig_Node_Module::compileGetTemplateName()
- Twig_Node_Module::compileTemplate in vendor/
Twig/ Node/ Module.php
File
- vendor/
Twig/ Node/ Module.php, line 285
Class
- Twig_Node_Module
- Represents a module node.
Code
protected function compileGetTemplateName(Twig_Compiler $compiler) {
$compiler
->write("public function getTemplateName()\n", "{\n")
->indent()
->write('return ')
->repr($this
->getAttribute('filename'))
->raw(";\n")
->outdent()
->write("}\n\n");
}