ConditionAggregateInterface
interface ConditionAggregateInterface implements Countable (View source)
Defines aggregated entity query conditions.
Methods
string
getConjunction()
Gets the current conjunction.
$this
condition(string|ConditionAggregateInterface $field, string $function = NULL, mixed $value = NULL, string $operator = NULL, string $langcode = NULL)
Adds a condition.
exists($field, $function, string $langcode = NULL)
Queries for the existence of a field.
notExists(string $field, $function, $langcode = NULL)
Queries for the nonexistence of a field.
array
conditions()
Gets a complete list of all conditions in this conditional clause.
compile($query)
Compiles this conditional clause.
Details
string
getConjunction()
Gets the current conjunction.
$this
condition(string|ConditionAggregateInterface $field, string $function = NULL, mixed $value = NULL, string $operator = NULL, string $langcode = NULL)
Adds a condition.
ConditionInterface
exists($field, $function, string $langcode = NULL)
Queries for the existence of a field.
ConditionInterface
notExists(string $field, $function, $langcode = NULL)
Queries for the nonexistence of a field.
array
conditions()
Gets a complete list of all conditions in this conditional clause.
This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled.
compile($query)
Compiles this conditional clause.