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

Breadcrumb

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

function SelectorsHandler::__construct

Initializes selectors handler.

Parameters

array<string, SelectorInterface> $selectors default selectors to register:

File

vendor/behat/mink/src/Selector/SelectorsHandler.php, line 36

Class

SelectorsHandler
Selectors handler.

Namespace

Behat\Mink\Selector

Code

public function __construct(array $selectors = array()) {
    $this->escaper = new Escaper();
    $this->registerSelector('named_partial', new PartialNamedSelector());
    $this->registerSelector('named_exact', new ExactNamedSelector());
    $this->registerSelector('css', new CssSelector());
    foreach ($selectors as $name => $selector) {
        $this->registerSelector($name, $selector);
    }
}

API Navigation

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