public function BetterExposedFiltersKernelTestBase::getExposedFormRenderArray in Better Exposed Filters 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/BetterExposedFiltersKernelTestBase.php \Drupal\Tests\better_exposed_filters\Kernel\BetterExposedFiltersKernelTestBase::getExposedFormRenderArray()
Gets the render array for the views exposed form.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
Return value
array The render array.
5 calls to BetterExposedFiltersKernelTestBase::getExposedFormRenderArray()
- BetterExposedFiltersKernelTestBase::renderExposedForm in tests/
src/ Kernel/ BetterExposedFiltersKernelTestBase.php - Renders the views exposed form.
- FilterWidgetKernelTest::testSortFilterOptions in tests/
src/ Kernel/ Plugin/ filter/ FilterWidgetKernelTest.php - Tests sorting filter options alphabetically.
- SortWidgetKernelTest::testCombineRewriteSortOptions in tests/
src/ Kernel/ Plugin/ sort/ SortWidgetKernelTest.php - Tests combining and rewriting sort options (sort order and sort by).
- SortWidgetKernelTest::testCombineSortOptions in tests/
src/ Kernel/ Plugin/ sort/ SortWidgetKernelTest.php - Tests combining sort options (sort order and sort by).
- SortWidgetKernelTest::testResetSortOptions in tests/
src/ Kernel/ Plugin/ sort/ SortWidgetKernelTest.php - Tests adding a reset sort option.
File
- tests/
src/ Kernel/ BetterExposedFiltersKernelTestBase.php, line 60
Class
- BetterExposedFiltersKernelTestBase
- Defines a base class for Better Exposed Filters kernel testing.
Namespace
Drupal\Tests\better_exposed_filters\KernelCode
public function getExposedFormRenderArray(ViewExecutable $view) {
$this
->executeView($view);
$exposed_form = $view->display_handler
->getPlugin('exposed_form');
return $exposed_form
->renderExposedForm();
}