You are here

public function Selective::query in Views Selective Filters 8

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 InOperator::query

File

src/Plugin/views/filter/Selective.php, line 226

Class

Selective
Views filter handler for selective values.

Namespace

Drupal\views_selective_filters\Plugin\views\filter

Code

public function query() {

  // If this view was constructed to obtain the selective values for this
  // handler, the handler should not add any constraints itself.
  if (isset($this->view->selective_handler_signature) && $this
    ->getSignature() === $this->view->selective_handler_signature) {
    return;
  }
  parent::query();
}