You are here

public function ConditionAggregateInterface::exists in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php \Drupal\Core\Entity\Query\ConditionAggregateInterface::exists()
  2. 9 core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php \Drupal\Core\Entity\Query\ConditionAggregateInterface::exists()

Queries for the existence of a field.

Parameters

string $field: The field to query for existence.

string $function: The function.

string $langcode: (optional) For which language the entity should be prepared, defaults to the current content language.

Return value

\Drupal\Core\Entity\Query\ConditionInterface

See also

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

File

core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php, line 55

Class

ConditionAggregateInterface
Defines aggregated entity query conditions.

Namespace

Drupal\Core\Entity\Query

Code

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