public function QueryInterface::exists

Queries for the existence of a field.

Parameters

$field: Name of a field.

$langcode: Language code (optional).

Return value

\Drupal\Core\Entity\Query\QueryInterface

1 method overrides QueryInterface::exists()
QueryBase::exists in drupal/core/lib/Drupal/Core/Entity/Query/QueryBase.php
Implements Drupal\Core\Entity\Query\QueryInterface::exists().

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 78
Definition of Drupal\Core\Entity\QueryInterface.

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function exists($field, $langcode = NULL);