function Numeric::op_empty in Views (for Drupal 7) 8.3
1 method overrides Numeric::op_empty()
- GroupByNumeric::op_empty in lib/
Drupal/ views/ Plugin/ views/ filter/ GroupByNumeric.php
File
- lib/
Drupal/ views/ Plugin/ views/ filter/ Numeric.php, line 269 - Definition of Drupal\views\Plugin\views\filter\Numeric.
Class
- Numeric
- Simple filter to handle greater than/less than filters
Namespace
Drupal\views\Plugin\views\filterCode
function op_empty($field) {
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->add_where($this->options['group'], $field, NULL, $operator);
}