Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Query / ConditionAggregateBase.php
1 <?php
2
3 namespace Drupal\Core\Entity\Query;
4
5 /**
6  * Defines a common base class for all aggregation entity condition implementations.
7  */
8 abstract class ConditionAggregateBase extends ConditionFundamentals implements ConditionAggregateInterface {
9
10   /**
11    * {@inheritdoc}
12    */
13   public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL) {
14     $this->conditions[] = [
15       'field' => $field,
16       'function' => $function,
17       'value' => $value,
18       'operator' => $operator,
19       'langcode' => $langcode,
20     ];
21
22     return $this;
23   }
24
25 }