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

Breadcrumb

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

function BlockReferenceNode::compile

Overrides Node::compile

File

vendor/twig/twig/src/Node/BlockReferenceNode.php, line 31

Class

BlockReferenceNode
Represents a block call node.

Namespace

Twig\Node

Code

public function compile(Compiler $compiler) : void {
    $compiler->addDebugInfo($this)
        ->write(\sprintf("yield from \$this->unwrap()->yieldBlock('%s', \$context, \$blocks);\n", $this->getAttribute('name')));
}
RSS feed
Powered by Drupal