Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::notExists()
  2. 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::notExists()

Queries for an empty field.

Parameters

string $field: Name of a field.

string|null $langcode: (optional) The language code allows filtering results by specific language. If omitted (NULL), any translation satisfies the condition.

Return value

$this

File

core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 141

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function notExists($field, $langcode = NULL);