function ConditionInterface::exists
Same name in this branch
- 11.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::exists()
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::exists()
- 9 core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::exists()
- 8.9.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::exists()
- 8.9.x core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::exists()
- 10 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::exists()
- 10 core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::exists()
Queries for the existence of a field.
Parameters
string $field: The field to query for existence.
string $langcode: (optional) For which language the entity should be prepared, defaults to the current content language.
Return value
$this
See also
\Drupal\Core\Entity\Query\QueryInterface::exists()
3 methods override ConditionInterface::exists()
- Condition::exists in core/
lib/ Drupal/ Core/ Config/ Entity/ Query/ Condition.php - Queries for the existence of a field.
- Condition::exists in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Condition.php - Queries for the existence of a field.
- Condition::exists in core/
lib/ Drupal/ Core/ Entity/ Query/ Null/ Condition.php - Queries for the existence of a field.
File
-
core/
lib/ Drupal/ Core/ Entity/ Query/ ConditionInterface.php, line 58
Class
- ConditionInterface
- Defines the entity query condition interface.
Namespace
Drupal\Core\Entity\QueryCode
public function exists($field, $langcode = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.