function ModuleNode::compileTemplate
1 call to ModuleNode::compileTemplate()
- ModuleNode::compile in vendor/
twig/ twig/ src/ Node/ ModuleNode.php
File
-
vendor/
twig/ twig/ src/ Node/ ModuleNode.php, line 81
Class
- ModuleNode
- Represents a module node.
Namespace
Twig\NodeCode
protected function compileTemplate(Compiler $compiler) {
if (!$this->getAttribute('index')) {
$compiler->write('<?php');
}
$this->compileClassHeader($compiler);
$this->compileConstructor($compiler);
$this->compileGetParent($compiler);
$this->compileDisplay($compiler);
$compiler->subcompile($this->getNode('blocks'));
$this->compileMacros($compiler);
$this->compileGetTemplateName($compiler);
$this->compileIsTraitable($compiler);
$this->compileDebugInfo($compiler);
$this->compileGetSourceContext($compiler);
$this->compileClassFooter($compiler);
}