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

Breadcrumb

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

function IdentifierHandler::handle

Overrides HandlerInterface::handle

File

vendor/symfony/css-selector/Parser/Handler/IdentifierHandler.php, line 38

Class

IdentifierHandler
CSS selector comment handler.

Namespace

Symfony\Component\CssSelector\Parser\Handler

Code

public function handle(Reader $reader, TokenStream $stream) : bool {
    $match = $reader->findPattern($this->patterns
        ->getIdentifierPattern());
    if (!$match) {
        return false;
    }
    $value = $this->escaping
        ->escapeUnicode($match[0]);
    $stream->push(new Token(Token::TYPE_IDENTIFIER, $value, $reader->getPosition()));
    $reader->moveForward(\strlen($match[0]));
    return true;
}

API Navigation

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