public function FilterPluginBase::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 PluginBase::query

1 call to FilterPluginBase::query()
FilterTest::query in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php
Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::query().
11 methods override FilterPluginBase::query()
Access::query in drupal/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php
See _node_access_where_sql() for a non-views query based implementation.
BooleanOperator::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
Add this filter to the query.
Broken::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/Broken.php
Add this filter to the query.
FilterTest::query in drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php
Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::query().
HistoryUserTimestamp::query in drupal/core/modules/history/lib/Drupal/history/Plugin/views/filter/HistoryUserTimestamp.php
Add this filter to the query.

... See full list

File

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

Class

FilterPluginBase
Base class for filters.

Namespace

Drupal\views\Plugin\views\filter

Code

public function query() {
  $this
    ->ensureMyTable();
  $this->query
    ->addWhere($this->options['group'], "{$this->tableAlias}.{$this->realField}", $this->value, $this->operator);
}