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
<?php

/**
 * @file
 * Contains \Drupal\Core\Entity\Query\ConditionAggregateBase.
 */
namespace Drupal\Core\Entity\Query;


/**
 * Defines a common base class for all aggregation entity condition implementations.
 */
abstract class ConditionAggregateBase extends ConditionFundamentals implements ConditionAggregateInterface {

  /**
   * Implements \Drupal\Core\Entity\Query\ConditionAggregateInterface::condition().
   */
  public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL) {
    $this->conditions[] = array(
      'field' => $field,
      'function' => $function,
      'value' => $value,
      'operator' => $operator,
      'langcode' => $langcode,
    );
    return $this;
  }

}

Classes

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