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

Breadcrumb

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

function Session::__construct

Same name in this branch
  1. 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Session.php \WebDriver\Session::__construct()
  2. 11.1.x vendor/symfony/http-foundation/Session/Session.php \Symfony\Component\HttpFoundation\Session\Session::__construct()
  3. 11.1.x core/lib/Drupal/Core/StackMiddleware/Session.php \Drupal\Core\StackMiddleware\Session::__construct()

File

vendor/behat/mink/src/Session.php, line 42

Class

Session
Mink session.

Namespace

Behat\Mink

Code

public function __construct(DriverInterface $driver, ?SelectorsHandler $selectorsHandler = null) {
    $this->driver = $driver;
    $this->selectorsHandler = $selectorsHandler ?? new SelectorsHandler();
    $this->elementFinder = new ElementFinder($driver, $this->selectorsHandler);
    $this->page = new DocumentElement($this);
    $driver->setSession($this);
}

API Navigation

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