You are here

public function ConditionInterface::condition in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Entity/Query/ConditionInterface.php \Drupal\Core\Entity\Query\ConditionInterface::condition()
  2. 8 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::condition()
Same name and namespace in other branches
  1. 8.0 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

ConditionInterface

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 42
Contains \Drupal\Core\Entity\Query\ConditionInterface.

Class

ConditionInterface
Defines the entity query condition interface.

Namespace

Drupal\Core\Entity\Query

Code

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