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

Breadcrumb

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

class FlushTokenParser

Flushes the output to the client.

@internal

Hierarchy

  • class \Twig\TokenParser\AbstractTokenParser implements \Twig\TokenParser\TokenParserInterface
    • class \Twig\TokenParser\FlushTokenParser extends \Twig\TokenParser\AbstractTokenParser

Expanded class hierarchy of FlushTokenParser

See also

flush()

1 file declares its use of FlushTokenParser
CoreExtension.php in vendor/twig/twig/src/Extension/CoreExtension.php

File

vendor/twig/twig/src/TokenParser/FlushTokenParser.php, line 25

Namespace

Twig\TokenParser
View source
final class FlushTokenParser extends AbstractTokenParser {
    public function parse(Token $token) : Node {
        $this->parser
            ->getStream()
            ->expect(Token::BLOCK_END_TYPE);
        return new FlushNode($token->getLine());
    }
    public function getTag() : string {
        return 'flush';
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
AbstractTokenParser::$parser protected property
AbstractTokenParser::setParser public function Sets the parser associated with this token parser. Overrides TokenParserInterface::setParser
FlushTokenParser::getTag public function Gets the tag name associated with this token parser. Overrides TokenParserInterface::getTag
FlushTokenParser::parse public function Parses a token and returns a node. Overrides TokenParserInterface::parse
RSS feed
Powered by Drupal