Queries for the existence of a field.
Parameters
$field:
string $langcode:
Return value
ConditionInterface
See also
\Drupal\Core\Entity\Query\QueryInterface::exists()
File
- drupal/core/lib/Drupal/Core/Entity/Query/ConditionInterface.php, line 52
- Definition of Drupal\Core\Entity\ConditionInterface.
Class
- ConditionInterface
- Defines the entity query condition interface.
Namespace
Drupal\Core\Entity\Query
Code
public function exists($field, $langcode = NULL);