You are here

public function InOperator::query in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/filter/InOperator.php \Drupal\views\Plugin\views\filter\InOperator::query()

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides FilterPluginBase::query

3 calls to InOperator::query()
Bundle::query in core/modules/views/src/Plugin/views/filter/Bundle.php
Add this filter to the query.
LanguageFilter::query in core/modules/views/src/Plugin/views/filter/LanguageFilter.php
Add this filter to the query.
Permissions::query in core/modules/user/src/Plugin/views/filter/Permissions.php
Replace the configured permission with a filter by all roles that have this permission.
6 methods override InOperator::query()
Bundle::query in core/modules/views/src/Plugin/views/filter/Bundle.php
Add this filter to the query.
LanguageFilter::query in core/modules/views/src/Plugin/views/filter/LanguageFilter.php
Add this filter to the query.
Permissions::query in core/modules/user/src/Plugin/views/filter/Permissions.php
Replace the configured permission with a filter by all roles that have this permission.
TaxonomyIndexTidDepth::query in core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php
Add this filter to the query.
UidRevision::query in core/modules/node/src/Plugin/views/filter/UidRevision.php
Add this filter to the query.

... See full list

File

core/modules/views/src/Plugin/views/filter/InOperator.php, line 387

Class

InOperator
Simple filter to handle matching of multiple options selectable via checkboxes.

Namespace

Drupal\views\Plugin\views\filter

Code

public function query() {
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    $this
      ->{$info[$this->operator]['method']}();
  }
}