function DocumentElement::getXpath

Same name in other branches
  1. 9 core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::getXpath()
  2. 10 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 30

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.