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()
- 10 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 - Add this filter to the query.
- StatisticsLastUpdated::query in core/
modules/ comment/ src/ Plugin/ views/ filter/ StatisticsLastUpdated.php - Add this filter to the query.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ NumericFilter.php, line 325
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.