You are here

function GroupByNumeric::op_simple in Views (for Drupal 7) 8.3

Overrides Numeric::op_simple

File

lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php, line 44
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

function op_simple($field) {
  $placeholder = $this
    ->placeholder();
  $this->query
    ->add_having_expression($this->options['group'], "{$field} {$this->operator} {$placeholder}", array(
    $placeholder => $this->value['value'],
  ));
}