You are here

public function SelectExtender::isNull in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::isNull()

Sets a condition that the specified field be NULL.

Parameters

string|\Drupal\Core\Database\Query\SelectInterface $field: The name of the field or a subquery to check.

Return value

$this The called object.

Overrides ConditionInterface::isNull

File

core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 448

Class

SelectExtender
The base extender class for Select queries.

Namespace

Drupal\Core\Database\Query

Code

public function isNull($field) {
  $this->query
    ->isNull($field);
  return $this;
}