function InOperator::op_empty

File

drupal/core/modules/views/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\filter

Code

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);
}