You are here

Views filter handlers in Views (for Drupal 7) 8.3

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

lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php, line 14
Definition of Drupal\views\Plugin\views\filter\FilterPluginBase.

Classes

Namesort descending Location Description
Access lib/Views/node/Plugin/views/filter/Access.php Filter by node_access records.
BooleanOperator lib/Drupal/views/Plugin/views/filter/BooleanOperator.php Simple filter to handle matching of boolean values
BooleanOperatorString lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php Simple filter to handle matching of boolean values.
Broken lib/Drupal/views/Plugin/views/filter/Broken.php A special handler to take the place of missing or broken handlers.
CategoryCid lib/Views/aggregator/Plugin/views/filter/CategoryCid.php Filter by aggregator category cid
Current lib/Views/user/Plugin/views/filter/Current.php Filter handler for the current user.
Date lib/Drupal/views/Plugin/views/filter/Date.php Filter to handle dates stored as a timestamp.
Equality lib/Drupal/views/Plugin/views/filter/Equality.php Simple filter to handle equal to / not equal to filters
FieldList lib/Views/field/Plugin/views/filter/FieldList.php Filter handler which uses list-fields as options.
FilterPluginBase lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php Base class for filters.
FilterPluginBase lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php Base class for filters.
GroupByNumeric lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php Simple filter to handle greater than/less than filters
HistoryUserTimestamp lib/Views/node/Plugin/views/filter/HistoryUserTimestamp.php Filter for new content.
InOperator lib/Drupal/views/Plugin/views/filter/InOperator.php Simple filter to handle matching of multiple options selectable via checkboxes
Language lib/Views/language/Plugin/views/filter/Language.php Filter by language.
ManyToOne 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 lib/Views/user/Plugin/views/filter/Name.php Filter handler for usernames.
NcsLastUpdated lib/Views/comment/Plugin/views/filter/NcsLastUpdated.php Filter handler for the newer of last comment / node updated.
NodeComment lib/Views/comment/Plugin/views/filter/NodeComment.php Filter based on comment node status.
NodeTnid lib/Views/translation/Plugin/views/filter/NodeTnid.php Filter by whether the node is the original translation.
NodeTnidChild lib/Views/translation/Plugin/views/filter/NodeTnidChild.php Filter by whether the node is not the original translation.
Numeric lib/Drupal/views/Plugin/views/filter/Numeric.php Simple filter to handle greater than/less than filters
Permissions lib/Views/user/Plugin/views/filter/Permissions.php Filter handler for user roles.
Roles lib/Views/user/Plugin/views/filter/Roles.php Filter handler for user roles.
Search lib/Views/search/Plugin/views/filter/Search.php Field handler to provide simple renderer that allows linking to a node.
Standard lib/Drupal/views/Plugin/views/filter/Standard.php Default implementation of the base filter plugin.
Status lib/Views/node/Plugin/views/filter/Status.php Filter by published status.
Status lib/Views/file/Plugin/views/filter/Status.php Filter by file status.
String lib/Drupal/views/Plugin/views/filter/String.php Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
TaxonomyIndexTid lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php Filter by term id.
TaxonomyIndexTidDepth lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php Filter handler for taxonomy terms with depth.
Type lib/Views/node/Plugin/views/filter/Type.php Filter by node type.
UidRevision lib/Views/node/Plugin/views/filter/UidRevision.php Filter handler to check for revisions a certain user has created.
UserUid lib/Views/comment/Plugin/views/filter/UserUid.php Filter handler to accept a user id to check for nodes that user posted or commented on.
Version lib/Views/locale/Plugin/views/filter/Version.php Filter by version.
VocabularyMachineName lib/Views/taxonomy/Plugin/views/filter/VocabularyMachineName.php Filter by vocabulary machine name.
VocabularyVid lib/Views/taxonomy/Plugin/views/filter/VocabularyVid.php Filter by vocabulary id.