public function GroupByNumeric::query in Zircon Profile 8
Same name in this branch
- 8 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::query()
- 8 core/modules/views/src/Plugin/views/sort/GroupByNumeric.php \Drupal\views\Plugin\views\sort\GroupByNumeric::query()
- 8 core/modules/views/src/Plugin/views/argument/GroupByNumeric.php \Drupal\views\Plugin\views\argument\GroupByNumeric::query()
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::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 NumericFilter::query
File
- core/
modules/ views/ src/ Plugin/ views/ filter/ GroupByNumeric.php, line 19 - Contains \Drupal\views\Plugin\views\filter\GroupByNumeric.
Class
- GroupByNumeric
- Simple filter to handle greater than/less than filters
Namespace
Drupal\views\Plugin\views\filterCode
public function query() {
$this
->ensureMyTable();
$field = $this
->getField();
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field);
}
}