function ConditionInterface::isNull

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::isNull()
  2. 10 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::isNull()
  3. 11.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::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.

2 methods override ConditionInterface::isNull()
Condition::isNull in core/lib/Drupal/Core/Database/Query/Condition.php
Sets a condition that the specified field be NULL.
SelectExtender::isNull in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Sets a condition that the specified field be NULL.

File

core/lib/Drupal/Core/Database/Query/ConditionInterface.php, line 100

Class

ConditionInterface
Interface for a conditional clause in a query.

Namespace

Drupal\Core\Database\Query

Code

public function isNull($field);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.