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

Breadcrumb

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

function Reader::findPattern

File

vendor/symfony/css-selector/Parser/Reader.php, line 62

Class

Reader
CSS selector reader.

Namespace

Symfony\Component\CssSelector\Parser

Code

public function findPattern(string $pattern) : array|false {
    $source = substr($this->source, $this->position);
    if (preg_match($pattern, $source, $matches)) {
        return $matches;
    }
    return false;
}

API Navigation

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