protected function ViewsListingTest::filterVisibleElements in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php \Drupal\Tests\views_ui\FunctionalJavascript\ViewsListingTest::filterVisibleElements()
- 9 core/modules/views_ui/tests/src/FunctionalJavascript/ViewsListingTest.php \Drupal\Tests\views_ui\FunctionalJavascript\ViewsListingTest::filterVisibleElements()
Removes any non-visible elements from the passed array.
Parameters
array $elements: The elements.
Return value
array
File
- core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ ViewsListingTest.php, line 140
Class
- ViewsListingTest
- Tests the JavaScript filtering on the Views listing page.
Namespace
Drupal\Tests\views_ui\FunctionalJavascriptCode
protected function filterVisibleElements($elements) {
$elements = array_filter($elements, function ($element) {
return $element
->isVisible();
});
return $elements;
}