function ConditionAggregate::exists

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::exists()
  2. 10 core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::exists()
  3. 11.x core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::exists()

Overrides ConditionAggregateInterface::exists

File

core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php, line 57

Class

ConditionAggregate
Defines the aggregate condition for sql based storage.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function exists($field, $function, $langcode = NULL) {
    return $this->condition($field, $function, NULL, 'IS NOT NULL', $langcode);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.