function UiHelperTrait::getTextContent
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()
- 10 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()
- 8.9.x core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()
Retrieves the plain-text content from the current page.
1 call to UiHelperTrait::getTextContent()
- FormTest::widgetAlterTest in core/
modules/ field/ tests/ src/ Functional/ FormTest.php - Tests widget alter hooks for a given hook name.
File
-
core/
tests/ Drupal/ Tests/ UiHelperTrait.php, line 510
Class
- UiHelperTrait
- Provides UI helper methods.
Namespace
Drupal\TestsCode
protected function getTextContent() {
return $this->getSession()
->getPage()
->getText();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.