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

Breadcrumb

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

function CrawlerSelectorCount::matches

Parameters

Crawler $crawler:

Overrides Constraint::matches

File

vendor/symfony/dom-crawler/Test/Constraint/CrawlerSelectorCount.php, line 33

Class

CrawlerSelectorCount

Namespace

Symfony\Component\DomCrawler\Test\Constraint

Code

protected function matches($crawler) : bool {
    return $this->count === \count($crawler->filter($this->selector));
}

API Navigation

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