protected function Twig_Lexer::popState

4 calls to Twig_Lexer::popState()
Twig_Lexer::lexBlock in drupal/core/vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexInterpolation in drupal/core/vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexString in drupal/core/vendor/twig/twig/lib/Twig/Lexer.php
Twig_Lexer::lexVar in drupal/core/vendor/twig/twig/lib/Twig/Lexer.php

File

drupal/core/vendor/twig/twig/lib/Twig/Lexer.php, line 398

Class

Twig_Lexer
Lexes a template string.

Code

protected function popState() {
  if (0 === count($this->states)) {
    throw new Exception('Cannot pop state without a previous state');
  }
  $this->state = array_pop($this->states);
}