ConditionAggregateBase.php

Contains \Drupal\Core\Entity\Query\ConditionAggregateBase.

Namespace

Drupal\Core\Entity\Query

File

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

Classes

Namesort descending Description
ConditionAggregateBase Defines a common base class for all aggregation entity condition implementations.