Implements \Drupal\Core\Entity\Query\ConditionInterface::exists().
Overrides ConditionAggregateInterface::exists
File
- drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/ConditionAggregate.php, line 52
- Contains \Drupal\field_sql_storage\Query\ConditionAggregate.
Class
- ConditionAggregate
- Defines the aggregate condition for sql based storage.
Namespace
Drupal\field_sql_storage\Entity
Code
public function exists($field, $function, $langcode = NULL) {
return $this
->condition($field, $function, NULL, 'IS NOT NULL', $langcode);
}