public function ConditionAggregateBase::condition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Query/ConditionAggregateBase.php \Drupal\Core\Entity\Query\ConditionAggregateBase::condition()
Adds a condition.
Parameters
string|ConditionAggregateInterface $field:
string $function:
mixed $value:
string $operator:
string $langcode:
Return value
\Drupal\Core\Entity\Query\ConditionAggregateInterface The called object.
Overrides ConditionAggregateInterface::condition
See also
\Drupal\Core\Entity\Query\QueryInterface::condition()
2 calls to ConditionAggregateBase::condition()
- ConditionAggregate::exists in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ ConditionAggregate.php - Queries for the existence of a field.
- ConditionAggregate::notExists in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ ConditionAggregate.php - Queries for the nonexistence of a field.
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ ConditionAggregateBase.php, line 18 - Contains \Drupal\Core\Entity\Query\ConditionAggregateBase.
Class
- ConditionAggregateBase
- Defines a common base class for all aggregation entity condition implementations.
Namespace
Drupal\Core\Entity\QueryCode
public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL) {
$this->conditions[] = array(
'field' => $field,
'function' => $function,
'value' => $value,
'operator' => $operator,
'langcode' => $langcode,
);
return $this;
}