Views filter handlers

Handlers to tell Views how to filter queries.

Definition items:

  • allow empty: If true, the 'IS NULL' and 'IS NOT NULL' operators become available as standard operators.

Object flags: You can set some specific behavior by setting up the following flags on your custom class.

  • always_multiple: Disable the possibility to force a single value.
  • no_operator: Disable the possibility to use operators.
  • always_required: Disable the possibility to allow a exposed input to be optional.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, line 15
Definition of Drupal\views\Plugin\views\filter\FilterPluginBase.

Classes

Namesort descending Location Description
Access drupal/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php Filter by node_access records.
BooleanOperator drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php Simple filter to handle matching of boolean values
BooleanOperatorString drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php Simple filter to handle matching of boolean values.
Broken drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Broken.php A special handler to take the place of missing or broken handlers.
Bundle drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Bundle.php Filter class which allows filtering by entity bundles.
Current drupal/core/modules/user/lib/Drupal/user/Plugin/views/filter/Current.php Filter handler for the current user.
Date drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Date.php Filter to handle dates stored as a timestamp.
Equality drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Equality.php Simple filter to handle equal to / not equal to filters
FieldList drupal/core/modules/field/lib/Drupal/field/Plugin/views/filter/FieldList.php Filter handler which uses list-fields as options.
FilterPluginBase drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php Base class for filters.
FilterPluginBase drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php Base class for filters.
GroupByNumeric drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php Simple filter to handle greater than/less than filters
HistoryUserTimestamp drupal/core/modules/history/lib/Drupal/history/Plugin/views/filter/HistoryUserTimestamp.php Filter for new content.
InOperator drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php Simple filter to handle matching of multiple options selectable via checkboxes
LanguageFilter drupal/core/modules/language/lib/Drupal/language/Plugin/views/filter/LanguageFilter.php Provides filtering by language.
ManyToOne drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/ManyToOne.php Complex filter to handle filtering for many to one relationships, such as terms (many terms per node) or roles (many roles per user).
Name drupal/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php Filter handler for usernames.
NcsLastUpdated drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php Filter handler for the newer of last comment / node updated.
NodeComment drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NodeComment.php Filter based on comment node status.
Numeric drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Numeric.php Simple filter to handle greater than/less than filters
Permissions drupal/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php Filter handler for user roles.
Roles drupal/core/modules/user/lib/Drupal/user/Plugin/views/filter/Roles.php Filter handler for user roles.
Search drupal/core/modules/search/lib/Drupal/search/Plugin/views/filter/Search.php Field handler to provide simple renderer that allows linking to a node.
Standard drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Standard.php Default implementation of the base filter plugin.
Status drupal/core/modules/node/lib/Drupal/node/Plugin/views/filter/Status.php Filter by published status.
Status drupal/core/modules/file/lib/Drupal/file/Plugin/views/filter/Status.php Filter by file status.
String drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
TaxonomyIndexTid drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php Filter by term id.
TaxonomyIndexTidDepth drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php Filter handler for taxonomy terms with depth.
UidRevision drupal/core/modules/node/lib/Drupal/node/Plugin/views/filter/UidRevision.php Filter handler to check for revisions a certain user has created.
UserUid drupal/core/modules/tracker/lib/Drupal/tracker/Plugin/views/filter/UserUid.php UID filter to check for nodes that a user posted or commented on.
UserUid drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/UserUid.php Filter handler to accept a user id to check for nodes that user posted or commented on.