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

Breadcrumb

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

function CommentHandler::handle

Overrides HandlerInterface::handle

File

vendor/symfony/css-selector/Parser/Handler/CommentHandler.php, line 29

Class

CommentHandler
CSS selector comment handler.

Namespace

Symfony\Component\CssSelector\Parser\Handler

Code

public function handle(Reader $reader, TokenStream $stream) : bool {
    if ('/*' !== $reader->getSubstring(2)) {
        return false;
    }
    $offset = $reader->getOffset('*/');
    if (false === $offset) {
        $reader->moveToEnd();
    }
    else {
        $reader->moveForward($offset + 2);
    }
    return true;
}

API Navigation

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