public function ConditionInterface::exists

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::exists()
  2. 9.x drupal/core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::exists()

Queries for the existence of a field.

Parameters

$field:

string $langcode:

Return value

ConditionInterface

See also

\Drupal\Core\Entity\Query\QueryInterface::exists()

1 method overrides ConditionInterface::exists()
Condition::exists in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Condition.php
Implements Drupal\Core\Entity\Query\ConditionInterface::exists().

File

drupal/core/lib/Drupal/Core/Entity/Query/ConditionInterface.php, line 52
Definition of Drupal\Core\Entity\ConditionInterface.

Class

ConditionInterface
Defines the entity query condition interface.

Namespace

Drupal\Core\Entity\Query

Code

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