public function Condition::exists

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Database/Query/Condition.php \Drupal\Core\Database\Query\Condition::exists()
  2. 8.x drupal/core/lib/Drupal/Core/Config/Entity/Query/Condition.php \Drupal\Core\Config\Entity\Query\Condition::exists()
  3. 8.x drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Condition.php \Drupal\field_sql_storage\Entity\Condition::exists()

Implements \Drupal\Core\Entity\Query\ConditionInterface::exists().

Overrides ConditionInterface::exists

File

drupal/core/lib/Drupal/Core/Config/Entity/Query/Condition.php, line 81
Contains \Drupal\Core\Config\Entity\Query\Condition.

Class

Condition
Defines the condition class for the config entity query.

Namespace

Drupal\Core\Config\Entity\Query

Code

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