protected function Twig_Node_Module::compileClassHeader in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Node/Module.php \Twig_Node_Module::compileClassHeader()
1 call to Twig_Node_Module::compileClassHeader()
- Twig_Node_Module::compileTemplate in vendor/
Twig/ Node/ Module.php
File
- vendor/
Twig/ Node/ Module.php, line 121
Class
- Twig_Node_Module
- Represents a module node.
Code
protected function compileClassHeader(Twig_Compiler $compiler) {
$compiler
->write("\n\n")
->write("/* " . str_replace('*/', '* /', $this
->getAttribute('filename')) . " */\n")
->write('class ' . $compiler
->getEnvironment()
->getTemplateClass($this
->getAttribute('filename'), $this
->getAttribute('index')))
->raw(sprintf(" extends %s\n", $compiler
->getEnvironment()
->getBaseTemplateClass()))
->write("{\n")
->indent();
}