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