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

Breadcrumb

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

function Lexer::popState

4 calls to Lexer::popState()
Lexer::lexBlock in vendor/twig/twig/src/Lexer.php
Lexer::lexInterpolation in vendor/twig/twig/src/Lexer.php
Lexer::lexString in vendor/twig/twig/src/Lexer.php
Lexer::lexVar in vendor/twig/twig/src/Lexer.php

File

vendor/twig/twig/src/Lexer.php, line 581

Class

Lexer
@author Fabien Potencier <fabien@symfony.com>

Namespace

Twig

Code

private function popState() : void {
    if (0 === \count($this->states)) {
        throw new \LogicException('Cannot pop state without a previous state.');
    }
    $this->state = array_pop($this->states);
}
RSS feed
Powered by Drupal