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

Breadcrumb

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

function TokenStream::getNextIdentifier

Returns next identifier token.

Throws

SyntaxErrorException If next token is not an identifier

File

vendor/symfony/css-selector/Parser/TokenStream.php, line 114

Class

TokenStream
CSS selector token stream.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function getNextIdentifier() : string {
    $next = $this->getNext();
    if (!$next->isIdentifier()) {
        throw SyntaxErrorException::unexpectedToken('identifier', $next);
    }
    return $next->getValue();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal