class ConditionAggregateBase

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php \Drupal\Core\Entity\Query\ConditionAggregateBase
  2. 10 core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php \Drupal\Core\Entity\Query\ConditionAggregateBase
  3. 8.9.x core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php \Drupal\Core\Entity\Query\ConditionAggregateBase

Defines a common base class for all aggregation entity condition implementations.

Hierarchy

Expanded class hierarchy of ConditionAggregateBase

1 file declares its use of ConditionAggregateBase
ConditionAggregate.php in core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php

File

core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php, line 8

Namespace

Drupal\Core\Entity\Query
View source
abstract class ConditionAggregateBase extends ConditionFundamentals implements ConditionAggregateInterface {
  
  /**
   * {@inheritdoc}
   */
  public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL) {
    $this->conditions[] = [
      'field' => $field,
      'function' => $function,
      'value' => $value,
      'operator' => $operator,
      'langcode' => $langcode,
    ];
    return $this;
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.