ConditionAggregateBase.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php
  2. 8.9.x core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php
  3. 11.x core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php

Namespace

Drupal\Core\Entity\Query

File

core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php

View source
<?php

namespace Drupal\Core\Entity\Query;


/**
 * Defines a common base class for all aggregation entity condition implementations.
 */
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;
  }

}

Classes

Title Deprecated Summary
ConditionAggregateBase Defines a common base class for all aggregation entity condition implementations.

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