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

Breadcrumb

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

class FlushNode

Represents a flush node.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Twig\Node\Node implements \Twig\Node\Countable, \Twig\Node\IteratorAggregate
    • class \Twig\Node\FlushNode extends \Twig\Node\Node

Expanded class hierarchy of FlushNode

1 file declares its use of FlushNode
FlushTokenParser.php in vendor/twig/twig/src/TokenParser/FlushTokenParser.php

File

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

Namespace

Twig\Node
View source
class FlushNode extends Node {
    public function __construct(int $lineno) {
        parent::__construct([], [], $lineno);
    }
    public function compile(Compiler $compiler) : void {
        $compiler->addDebugInfo($this);
        if ($compiler->getEnvironment()
            ->useYield()) {
            $compiler->write("yield '';\n");
        }
        $compiler->write("flush();\n");
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
FlushNode::compile public function Overrides Node::compile
FlushNode::__construct public function Overrides Node::__construct
Node::$attributeNameDeprecations private property @var array&lt;string, NameDeprecation&gt;
Node::$attributes protected property
Node::$lineno protected property
Node::$nodeNameDeprecations private property @var array&lt;string, NameDeprecation&gt;
Node::$nodes protected property
Node::$sourceContext private property
Node::$tag protected property
Node::count public function
Node::deprecateAttribute public function
Node::deprecateNode public function
Node::getAttribute public function
Node::getIterator public function
Node::getNode public function
Node::getNodeTag public function
Node::getSourceContext public function
Node::getTemplateLine public function
Node::getTemplateName public function
Node::hasAttribute public function
Node::hasNode public function
Node::removeAttribute public function
Node::removeNode public function
Node::setAttribute public function
Node::setNode public function 1
Node::setNodeTag public function @internal
Node::setSourceContext public function
Node::__toString public function
RSS feed
Powered by Drupal