Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ModuleNode.php

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\Node

Code

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);
}
RSS feed
Powered by Drupal