function DocumentElement::getXpath

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::getXpath()
  2. 11.x core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::getXpath()

Returns XPath for handled element.

Return value

string

File

core/tests/Drupal/Tests/DocumentElement.php, line 31

Class

DocumentElement
Document element.

Namespace

Drupal\Tests

Code

public function getXpath() {
    return '//html';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.