function InOperator::op_empty in Views (for Drupal 7) 8.3
File
- lib/
Drupal/ views/ Plugin/ views/ filter/ InOperator.php, line 391 - Definition of Drupal\views\Plugin\views\filter\InOperator.
Class
- InOperator
- Simple filter to handle matching of multiple options selectable via checkboxes
Namespace
Drupal\views\Plugin\views\filterCode
function op_empty() {
$this
->ensureMyTable();
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->add_where($this->options['group'], "{$this->tableAlias}.{$this->realField}", NULL, $operator);
}