protected function GroupByNumeric::opSimple

Overrides Numeric::opSimple

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php, line 42
Definition of Drupal\views\Plugin\views\filter\GroupByNumeric.

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}", array(
    $placeholder => $this->value['value'],
  ));
}