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

Breadcrumb

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

function FlushNode::compile

Overrides Node::compile

File

vendor/twig/twig/src/Node/FlushNode.php, line 30

Class

FlushNode
Represents a flush node.

Namespace

Twig\Node

Code

public function compile(Compiler $compiler) : void {
    $compiler->addDebugInfo($this);
    if ($compiler->getEnvironment()
        ->useYield()) {
        $compiler->write("yield '';\n");
    }
    $compiler->write("flush();\n");
}
RSS feed
Powered by Drupal