3 namespace Drupal\Core\Entity\Query\Null;
5 use Drupal\Core\Entity\Query\ConditionBase;
8 * Defines the condition class for the null entity query.
10 class Condition extends ConditionBase {
15 public function compile($query) {
21 public function exists($field, $langcode = NULL) {
22 return $this->condition($field, NULL, 'IS NOT NULL', $langcode);
28 public function notExists($field, $langcode = NULL) {
29 return $this->condition($field, NULL, 'IS NULL', $langcode);