public function QueryInterface::exists in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::exists()
- 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::exists()
Queries for a non-empty value on a field.
Parameters
string $field: Name of a field.
string|null $langcode: (optional) The language code allows filtering results by specific language. If omitted (NULL), any translation satisfies the condition.
Return value
$this
1 method overrides QueryInterface::exists()
- QueryBase::exists in core/
lib/ Drupal/ Core/ Entity/ Query/ QueryBase.php - Queries for a non-empty value on a field.
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ QueryInterface.php, line 126
Class
- QueryInterface
- Interface for entity queries.
Namespace
Drupal\Core\Entity\QueryCode
public function exists($field, $langcode = NULL);