Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Query / ConditionBase.php
1 <?php
2
3 namespace Drupal\Core\Entity\Query;
4
5 /**
6  * Defines a common base class for all entity condition implementations.
7  */
8 abstract class ConditionBase extends ConditionFundamentals implements ConditionInterface {
9
10   /**
11    * {@inheritdoc}
12    */
13   public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL) {
14     $this->conditions[] = [
15       'field' => $field,
16       'value' => $value,
17       'operator' => $operator,
18       'langcode' => $langcode,
19     ];
20
21     return $this;
22   }
23
24 }