abstract class ConditionAggregateBase

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

Hierarchy

  • class \Drupal\Core\Entity\Query\ConditionAggregateBase implements \Drupal\Core\Entity\Query\ConditionAggregateInterface

Expanded class hierarchy of ConditionAggregateBase

File

drupal/core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php, line 13
Contains \Drupal\Core\Entity\Query\ConditionAggregateBase.

Namespace

Drupal\Core\Entity\Query
View source
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;
  }

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
ConditionAggregateBase::condition public function Implements \Drupal\Core\Entity\Query\ConditionAggregateInterface::condition(). Overrides ConditionAggregateInterface::condition
ConditionAggregateInterface::compile public function Compiles this conditional clause.
ConditionAggregateInterface::exists public function Queries for the existence of a field.
ConditionAggregateInterface::notExists public function Queries for the nonexistence of a field.
ConditionFundamentals::$conditions protected property Array of conditions.
ConditionFundamentals::$conjunction protected property The conjunction of this condition group. The value is one of the following:
ConditionFundamentals::conditions public function Implements \Drupal\Core\Entity\Query\ConditionInterface::conditions().
ConditionFundamentals::count public function Implements \Countable::count().
ConditionFundamentals::getConjunction public function Implements \Drupal\Core\Entity\Query\ConditionInterface::getConjunction().
ConditionFundamentals::__clone public function Implements the magic __clone function.
ConditionFundamentals::__construct public function Constructs a Condition object.