function QueryConditionTrait::condition

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php \Drupal\Core\Database\Query\QueryConditionTrait::condition()
  2. 10 core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php \Drupal\Core\Database\Query\QueryConditionTrait::condition()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.