Defines a common base class for all entity condition implementations.
Expanded class hierarchy of ConditionBase
abstract class ConditionBase extends ConditionFundamentals implements ConditionInterface {
/**
* Implements \Drupal\Core\Entity\Query\ConditionInterface::compile().
*/
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL) {
$this->conditions[] = array(
'field' => $field,
'value' => $value,
'operator' => $operator,
'langcode' => $langcode,
);
return $this;
}
}