protected function Twig_Node_Module::compileGetTemplateName

1 call to Twig_Node_Module::compileGetTemplateName()
Twig_Node_Module::compileTemplate in drupal/core/vendor/twig/twig/lib/Twig/Node/Module.php

File

drupal/core/vendor/twig/twig/lib/Twig/Node/Module.php, line 274

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");
}