Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConditionAggregateBase.php

class ConditionAggregateBase

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

Hierarchy

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

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;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ConditionAggregateBase::condition public function Adds a condition. Overrides ConditionAggregateInterface::condition
ConditionAggregateInterface::compile public function Compiles this conditional clause. 1
ConditionAggregateInterface::exists public function Queries for the existence of a field. 1
ConditionAggregateInterface::notExists public function Queries for the nonexistence of a field. 1
ConditionFundamentals::$conditions protected property Array of conditions.
ConditionFundamentals::$conjunction protected property The conjunction of this condition group.
ConditionFundamentals::$namespaces protected property List of potential namespaces of the classes belonging to this condition.
ConditionFundamentals::$query protected property The query this condition belongs to. 1
ConditionFundamentals::conditions public function
ConditionFundamentals::count public function
ConditionFundamentals::getConjunction public function
ConditionFundamentals::__clone public function Implements the magic __clone function.
ConditionFundamentals::__construct public function Constructs a Condition object.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal