function DocumentElement::getXpath
Same name in other branches
- 10 core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::getXpath()
- 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\TestsCode
public function getXpath() {
return '//html';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.