You are here

public function Element::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()
  2. 8 vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::__construct()

Initialize element.

Parameters

Session $session:

1 call to Element::__construct()
NodeElement::__construct in vendor/behat/mink/src/Element/NodeElement.php
Initializes node element.
1 method overrides Element::__construct()
NodeElement::__construct in vendor/behat/mink/src/Element/NodeElement.php
Initializes node element.

File

vendor/behat/mink/src/Element/Element.php, line 53

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function __construct(Session $session) {
  $this->xpathManipulator = new Manipulator();
  $this->session = $session;
  $this->driver = $session
    ->getDriver();
  $this->selectorsHandler = $session
    ->getSelectorsHandler();
}