public function ConditionBase::condition

Implements Drupal\Core\Entity\Query\ConditionInterface::compile().

Overrides ConditionInterface::condition

2 calls to ConditionBase::condition()
Condition::exists in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Condition.php
Implements Drupal\Core\Entity\Query\ConditionInterface::exists().
Condition::notExists in drupal/core/modules/field/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Condition.php
Implements Drupal\Core\Entity\Query\ConditionInterface::notExists().

File

drupal/core/lib/Drupal/Core/Entity/Query/ConditionBase.php, line 49
Definition of Drupal\Core\Entity\Query\ConditionBase.

Class

ConditionBase
Common code for all implementations of the entity query condition interface.

Namespace

Drupal\Core\Entity\Query

Code

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