public function Numeric::query in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Drupal/views/Plugin/views/filter/Numeric.php \Drupal\views\Plugin\views\filter\Numeric::query()
- 8.3 lib/Drupal/views/Plugin/views/argument/Numeric.php \Drupal\views\Plugin\views\argument\Numeric::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
2 methods override Numeric::query()
- GroupByNumeric::query in lib/
Drupal/ views/ Plugin/ views/ filter/ GroupByNumeric.php - Add this filter to the query.
- NcsLastUpdated::query in lib/
Views/ comment/ Plugin/ views/ filter/ NcsLastUpdated.php - Add this filter to the query.
File
- lib/
Drupal/ views/ Plugin/ views/ filter/ Numeric.php, line 246 - Definition of Drupal\views\Plugin\views\filter\Numeric.
Class
- Numeric
- Simple filter to handle greater than/less than filters
Namespace
Drupal\views\Plugin\views\filterCode
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);
}
}