"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/lib/Drupal/Core/Entity/Query/Null/Condition.php" (26 Nov 2020, 590 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Condition.php" see the Fossies "Dox" file reference documentation.

    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 }