protected function Twig_Node_Module::compileGetTemplateName in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Node/Module.php \Twig_Node_Module::compileGetTemplateName()
1 call to Twig_Node_Module::compileGetTemplateName()
- Twig_Node_Module::compileTemplate in vendor/
twig/ twig/ lib/ Twig/ Node/ Module.php
File
- vendor/
twig/ twig/ lib/ Twig/ Node/ Module.php, line 311
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");
}