function NumericFilter::query
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::query()
- 8.9.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::query()
- 11.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::query()
Overrides FilterPluginBase::query
2 methods override NumericFilter::query()
- GroupByNumeric::query in core/
modules/ views/ src/ Plugin/ views/ filter/ GroupByNumeric.php - StatisticsLastUpdated::query in core/
modules/ comment/ src/ Plugin/ views/ filter/ StatisticsLastUpdated.php
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ NumericFilter.php, line 333
Class
- NumericFilter
- 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);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.