public function Condition::isNull in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Query/Condition.php \Drupal\Core\Database\Query\Condition::isNull()
Sets a condition that the specified field be NULL.
Parameters
$field: The name of the field to check.
Return value
\Drupal\Core\Database\Query\ConditionInterface The called object.
Overrides ConditionInterface::isNull
File
- core/
lib/ Drupal/ Core/ Database/ Query/ Condition.php, line 107 - Contains \Drupal\Core\Database\Query\Condition.
Class
- Condition
- Generic class for a series of conditions in a query.
Namespace
Drupal\Core\Database\QueryCode
public function isNull($field) {
return $this
->condition($field, NULL, 'IS NULL');
}