You are here

public function InOperator::query in Views (for Drupal 7) 8.3

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

2 methods override InOperator::query()
TaxonomyIndexTidDepth::query in lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTidDepth.php
Add this filter to the query.
UidRevision::query in lib/Views/node/Plugin/views/filter/UidRevision.php
Add this filter to the query.

File

lib/Drupal/views/Plugin/views/filter/InOperator.php, line 373
Definition of Drupal\views\Plugin\views\filter\InOperator.

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']}();
  }
}