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()

Sets a condition that the specified subquery returns values.

Parameters

Drupal\Core\Database\Query\SelectInterface $select: The subquery that must contain results.

Return value

Drupal\Core\Database\Query\ConditionInterface The called object.

6 methods override ConditionInterface::exists()
Condition::exists in drupal/core/lib/Drupal/Core/Database/Query/Condition.php
Implements Drupal\Core\Database\Query\ConditionInterface::exists().
Delete::exists in drupal/core/lib/Drupal/Core/Database/Query/Delete.php
Implements Drupal\Core\Database\Query\ConditionInterface::exists().
Merge::exists in drupal/core/lib/Drupal/Core/Database/Query/Merge.php
Implements Drupal\Core\Database\Query\ConditionInterface::exists().
Select::exists in drupal/core/lib/Drupal/Core/Database/Query/Select.php
Sets a condition that the specified subquery returns values.
SelectExtender::exists in drupal/core/lib/Drupal/Core/Database/Query/SelectExtender.php
Sets a condition that the specified subquery returns values.

... See full list

File

drupal/core/lib/Drupal/Core/Database/Query/ConditionInterface.php, line 92
Definition of Drupal\Core\Database\Query\ConditionInterface

Class

ConditionInterface
Interface for a conditional clause in a query.

Namespace

Drupal\Core\Database\Query

Code

public function exists(SelectInterface $select);