3 namespace Drupal\Core\Entity\Query;
6 * Defines aggregated entity query conditions.
8 interface ConditionAggregateInterface extends \Countable {
11 * Gets the current conjunction.
16 public function getConjunction();
21 * @param string|ConditionAggregateInterface $field
22 * @param string $function
24 * @param string $operator
25 * @param string $langcode
27 * @return \Drupal\Core\Entity\Query\ConditionAggregateInterface
29 * @see \Drupal\Core\Entity\Query\QueryInterface::condition()
31 public function condition($field, $function = NULL, $value = NULL, $operator = NULL, $langcode = NULL);
34 * Queries for the existence of a field.
37 * @param string $langcode
38 * @return ConditionInterface
39 * @see \Drupal\Core\Entity\Query\QueryInterface::exists()
41 public function exists($field, $function, $langcode = NULL);
44 * Queries for the nonexistence of a field.
46 * @param string $field
47 * @return ConditionInterface
48 * @see \Drupal\Core\Entity\Query\QueryInterface::notexists()
50 public function notExists($field, $function, $langcode = NULL);
53 * Gets a complete list of all conditions in this conditional clause.
55 * This method returns by reference. That allows alter hooks to access the
56 * data structure directly and manipulate it before it gets compiled.
60 public function &conditions();
63 * Compiles this conditional clause.
66 * The query object this conditional clause belongs to.
68 public function compile($query);