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

Breadcrumb

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

function Element::__construct

Same name in this branch
  1. 11.1.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::__construct()
  2. 11.1.x core/modules/editor/src/Element.php \Drupal\editor\Element::__construct()

Constructor

Parameters

string $url URL:

string $id element ID:

Overrides Container::__construct

File

vendor/lullabot/php-webdriver/lib/WebDriver/Element.php, line 101

Class

Element
WebDriver\Element class

Namespace

WebDriver

Code

public function __construct($url, $id) {
    parent::__construct($url);
    $this->id = $id;
}

API Navigation

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