ConditionAggregateBase.php 589 B

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