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

Breadcrumb

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

function Crawler::matches

File

vendor/symfony/dom-crawler/Crawler.php, line 387

Class

Crawler
Crawler eases navigation of a list of \DOMNode objects.

Namespace

Symfony\Component\DomCrawler

Code

public function matches(string $selector) : bool {
    if (!$this->nodes) {
        return false;
    }
    $converter = $this->createCssSelectorConverter();
    $xpath = $converter->toXPath($selector, 'self::');
    return 0 !== $this->filterRelativeXPath($xpath)
        ->count();
}
RSS feed
Powered by Drupal