You are here

protected function Twig_Node_Module::compileClassHeader in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.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 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();
}