function InOperator::opEmpty
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ InOperator.php, line 409
Class
- InOperator
- Simple filter to handle matching of multiple options selectable via checkboxes.
Namespace
Drupal\views\Plugin\views\filterCode
protected function opEmpty() {
$this->ensureMyTable();
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->addWhere($this->options['group'], "{$this->tableAlias}.{$this->realField}", NULL, $operator);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.