Filter Handlers
Plugins that handle views filtering.
Filter handler plugins extend \Drupal\views\Plugin\views\filter\FilterPluginBase. They must be attributed with \Drupal\views\Attribute\ViewsFilter attribute, and they must be in namespace directory Plugin\views\filter.
The following items can go into a hook_views_data() implementation in a filter section to affect how the filter handler will behave:
- allow empty: If true, the 'IS NULL' and 'IS NOT NULL' operators become available as standard operators.
You can refine the behavior of filters by setting the following Boolean member variables to TRUE in your plugin class:
- $alwaysMultiple: Disable the possibility of forcing a single value.
- $no_operator: Disable the possibility of using operators.
- $always_required: Disable the possibility of allowing an exposed input to be optional.