public function Numeric::query

Same name in this branch

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 Numeric::query()
GroupByNumeric::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php
Add this filter to the query.
NcsLastUpdated::query in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/filter/NcsLastUpdated.php
Add this filter to the query.

File

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

Class

Numeric
Simple filter to handle greater than/less than filters

Namespace

Drupal\views\Plugin\views\filter

Code

public function query() {
  $this
    ->ensureMyTable();
  $field = "{$this->tableAlias}.{$this->realField}";
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    $this
      ->{$info[$this->operator]['method']}($field);
  }
}