function GroupByNumeric::opSimple
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::opSimple()
- 8.9.x core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::opSimple()
- 10 core/modules/views/src/Plugin/views/filter/GroupByNumeric.php \Drupal\views\Plugin\views\filter\GroupByNumeric::opSimple()
Overrides NumericFilter::opSimple
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ GroupByNumeric.php, line 37
Class
- GroupByNumeric
- Simple filter to handle greater than/less than filters.
Namespace
Drupal\views\Plugin\views\filterCode
protected function opSimple($field) {
$placeholder = $this->placeholder();
$this->query
->addHavingExpression($this->options['group'], "{$field} {$this->operator} {$placeholder}", [
$placeholder => $this->value['value'],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.