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

Breadcrumb

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

function DocumentElement::hasContent

Check whether document has specified content.

Parameters

string $content:

Return value

bool

File

vendor/behat/mink/src/Element/DocumentElement.php, line 47

Class

DocumentElement
Document element.

Namespace

Behat\Mink\Element

Code

public function hasContent(string $content) {
    return $this->has('named', array(
        'content',
        $content,
    ));
}

API Navigation

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