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

Breadcrumb

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

function ConditionInterface::condition

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::condition()

Adds a condition.

Parameters

string|\Drupal\Core\Entity\Query\ConditionInterface $field: The field.

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

See also

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

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

File

core/lib/Drupal/Core/Entity/Query/ConditionInterface.php, line 43

Class

ConditionInterface
Defines the entity query condition interface.

Namespace

Drupal\Core\Entity\Query

Code

public function condition($field, $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