public function ConditionAggregateInterface::exists in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php \Drupal\Core\Entity\Query\ConditionAggregateInterface::exists()
- 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\QueryCode
public function exists($field, $function, $langcode = NULL);