You are here

public function QueryConditionTrait::condition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php \Drupal\Core\Database\Query\QueryConditionTrait::condition()
  2. 9 core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php \Drupal\Core\Database\Query\QueryConditionTrait::condition()
1 call to QueryConditionTrait::condition()
Merge::keys in core/lib/Drupal/Core/Database/Query/Merge.php
Sets the key fields to be used as conditions for this query.

File

core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php, line 26

Class

QueryConditionTrait
Provides an implementation of ConditionInterface.

Namespace

Drupal\Core\Database\Query

Code

public function condition($field, $value = NULL, $operator = '=') {
  $this->condition
    ->condition($field, $value, $operator);
  return $this;
}