function ConditionAggregate::exists
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::exists()
- 10 core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::exists()
- 11.x core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php \Drupal\Core\Entity\Query\Sql\ConditionAggregate::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
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\SqlCode
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.