function Combine::op_empty in Views (for Drupal 7) 8.3
Overrides String::op_empty
File
- lib/
Drupal/ views/ Plugin/ views/ filter/ Combine.php, line 136 - Definition of Drupal\views\Plugin\views\filter\Combine.
Class
- Combine
- Filter handler which allows to search on multiple fields.
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_expression($this->options['group'], "{$field} {$operator}");
}