You are here

public function Condition::exists in Apigee Edge 8

Queries for the existence of a field.

Parameters

string $field:

string $langcode:

Return value

$this

Overrides ConditionInterface::exists

See also

\Drupal\Core\Entity\Query\QueryInterface::exists()

File

src/Entity/Query/Condition.php, line 34

Class

Condition
Defines the condition class for the Apigee Edge entity query.

Namespace

Drupal\apigee_edge\Entity\Query

Code

public function exists($field, $langcode = NULL) {
  return $this
    ->condition($field, NULL, 'IS NOT NULL', $langcode);
}