protected function BetterExposedFiltersTrait::getBetterExposedOptions in Better Exposed Filters 8.5
Same name and namespace in other branches
- 8.4 tests/src/Traits/BetterExposedFiltersTrait.php \Drupal\Tests\better_exposed_filters\Traits\BetterExposedFiltersTrait::getBetterExposedOptions()
Returns the configured BEF options.
Parameters
\Drupal\views\ViewExecutable $view: The view object.
Return value
array Array of BEF options.
1 call to BetterExposedFiltersTrait::getBetterExposedOptions()
- BetterExposedFiltersTrait::setBetterExposedOptions in tests/
src/ Traits/ BetterExposedFiltersTrait.php - Merges options into existing BEF configuration.
File
- tests/
src/ Traits/ BetterExposedFiltersTrait.php, line 22
Class
- BetterExposedFiltersTrait
- Makes Drupal's test API forward compatible with multiple versions of PHPUnit.
Namespace
Drupal\Tests\better_exposed_filters\TraitsCode
protected function &getBetterExposedOptions(ViewExecutable $view) {
return $view->storage
->getDisplay('default')['display_options']['exposed_form']['options']['bef'];
}