You are here

protected function Fraction::opSimple in Fraction 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/filter/Fraction.php \Drupal\fraction\Plugin\views\filter\Fraction::opSimple()

Overrides NumericFilter::opSimple

File

src/Plugin/views/filter/Fraction.php, line 59

Class

Fraction
Filter handler for Fraction fields.

Namespace

Drupal\fraction\Plugin\views\filter

Code

protected function opSimple($field) {
  $expression = $field . ' ' . $this->operator . ' :value';
  $this->query
    ->addWhereExpression($this->options['group'], $expression, [
    ':value' => $this->value['value'],
  ]);
}