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

Breadcrumb

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

function NamedSelector::__construct

Creates selector instance.

4 calls to NamedSelector::__construct()
ExactNamedSelector::__construct in vendor/behat/mink/src/Selector/ExactNamedSelector.php
Creates selector instance.
ExactNamedSelector::__construct in vendor/behat/mink/src/Selector/ExactNamedSelector.php
Creates selector instance.
PartialNamedSelector::__construct in vendor/behat/mink/src/Selector/PartialNamedSelector.php
Creates selector instance.
PartialNamedSelector::__construct in vendor/behat/mink/src/Selector/PartialNamedSelector.php
Creates selector instance.
2 methods override NamedSelector::__construct()
ExactNamedSelector::__construct in vendor/behat/mink/src/Selector/ExactNamedSelector.php
Creates selector instance.
PartialNamedSelector::__construct in vendor/behat/mink/src/Selector/PartialNamedSelector.php
Creates selector instance.

File

vendor/behat/mink/src/Selector/NamedSelector.php, line 176

Class

NamedSelector
Named selectors engine. Uses registered XPath selectors to create new expressions.

Namespace

Behat\Mink\Selector

Code

public function __construct() {
    $this->xpathEscaper = new Escaper();
    foreach ($this->replacements as $from => $to) {
        $this->registerReplacement($from, $to);
    }
    foreach ($this->selectors as $alias => $selector) {
        $this->registerNamedXpath($alias, $selector);
    }
}

API Navigation

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