You are here

function hook_better_exposed_filters_filter_widgets_alter in Better Exposed Filters 8.4

Same name and namespace in other branches
  1. 8.5 better_exposed_filters.api.php \hook_better_exposed_filters_filter_widgets_alter()

Modify the array of BEF display options for an exposed filter.

Parameters

array $widgets: The set of BEF widgets available to this filter.

\Drupal\views\Plugin\views\HandlerBase $filter: The exposed views filter plugin.

File

./better_exposed_filters.api.php, line 32
Hooks provided by the Better Exposed Filters module.

Code

function hook_better_exposed_filters_filter_widgets_alter(array &$widgets, HandlerBase $filter) {
  if ($filter instanceof CustomViewsFilterFoo) {
    $widgets['bef_links'] = t('Links');
  }
}