Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Query / Null / Condition.php
1 <?php
2
3 namespace Drupal\Core\Entity\Query\Null;
4
5 use Drupal\Core\Entity\Query\ConditionBase;
6
7 /**
8  * Defines the condition class for the null entity query.
9  */
10 class Condition extends ConditionBase {
11
12   /**
13    * {@inheritdoc}
14    */
15   public function compile($query) {
16   }
17
18   /**
19    * {@inheritdoc}
20    */
21   public function exists($field, $langcode = NULL) {
22     return $this->condition($field, NULL, 'IS NOT NULL', $langcode);
23   }
24
25   /**
26    * {@inheritdoc}
27    */
28   public function notExists($field, $langcode = NULL) {
29     return $this->condition($field, NULL, 'IS NULL', $langcode);
30   }
31
32 }