You are here

protected function GroupByNumeric::opSimple in Drupal 8

Same name and namespace in other branches
  1. 9 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 36

Class

GroupByNumeric
Simple filter to handle greater than/less than filters

Namespace

Drupal\views\Plugin\views\filter

Code

protected function opSimple($field) {
  $placeholder = $this
    ->placeholder();
  $this->query
    ->addHavingExpression($this->options['group'], "{$field} {$this->operator} {$placeholder}", [
    $placeholder => $this->value['value'],
  ]);
}