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

Breadcrumb

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

function Element::has

Overrides ElementInterface::has

3 calls to Element::has()
DocumentElement::hasContent in vendor/behat/mink/src/Element/DocumentElement.php
Check whether document has specified content.
TraversableElement::hasSelect in vendor/behat/mink/src/Element/TraversableElement.php
Checks whether element has a select field with specified locator.
TraversableElement::hasTable in vendor/behat/mink/src/Element/TraversableElement.php
Checks whether element has a table with specified locator.

File

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

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function has(string $selector, $locator) {
    return null !== $this->find($selector, $locator);
}

API Navigation

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