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

Breadcrumb

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

function ConditionAggregateInterface::condition

Adds a condition.

Parameters

string|ConditionAggregateInterface $field: The field.

string $function: (optional) The function.

mixed $value: (optional) The value.

string $operator: (optional) The operator.

string $langcode: (optional) For which language the entity should be prepared, defaults to the current content language.

Return value

$this The called object.

See also

\Drupal\Core\Entity\Query\QueryInterface::condition()

1 method overrides ConditionAggregateInterface::condition()
ConditionAggregateBase::condition in core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php
Adds a condition.

File

core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php, line 38

Class

ConditionAggregateInterface
Defines aggregated entity query conditions.

Namespace

Drupal\Core\Entity\Query

Code

public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL);

API Navigation

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