function ConditionInterface::condition
Same name in this branch
- 8.9.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::condition()
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::condition()
- 9 core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::condition()
- 10 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::condition()
- 10 core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::condition()
- 11.x core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::condition()
- 11.x core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::condition()
Adds a condition.
Parameters
string|\Drupal\Core\Entity\Query\ConditionInterface $field:
mixed $value:
string $operator:
string $langcode:
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 38
Class
- ConditionInterface
- Defines the entity query condition interface.
Namespace
Drupal\Core\Entity\QueryCode
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.