QueryBase::conditionGroupFactory

protected QueryBase::conditionGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionGroup() and orConditionGroup() for more. Parameters string $conjunction: AND (default): this is the equivalent of andConditionGroup(). OR: this is the equivalent of orConditionGroup(). Return value \Drupal\Core\Entity\Query\ConditionInterface An object holding a group of conditions. File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 203 Class QueryB

QueryBase::conditionAggregate

public QueryBase::conditionAggregate($field, $function = NULL, $value = NULL, $operator = '=', $langcode = NULL) File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 397 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function conditionAggregate($field, $function = NULL, $value = NULL, $operator = '=', $langcode = NULL) { $this->aggregate($field, $function, $langcode); $this->conditionAggregate->condition($field, $function,

QueryBase::condition

public QueryBase::condition($property, $value = NULL, $operator = NULL, $langcode = NULL) Add a condition to the query or a condition group. For example, to find all entities containing both the Turkish 'merhaba' and the Polish 'siema' within a 'greetings' text field: $entity_ids = \Drupal::entityQuery($entity_type) ->condition('greetings', 'merhaba', '=', 'tr') ->condition('greetings.value', 'siema', '=', 'pl') ->execute(); Parameters $field: Name of the field being qu

QueryBase::andConditionGroup

public QueryBase::andConditionGroup() Creates a new group of conditions ANDed together. For example, consider a drawing entity type with a 'figures' multi-value field containing 'shape' and 'color' columns. To find all drawings containing both a red triangle and a blue circle: $query = \Drupal::entityQuery('drawing'); $group = $query->andConditionGroup() ->condition('figures.color', 'red') ->condition('figures.shape', 'triangle'); $query->condition($group); $group =

QueryBase::allRevisions

public QueryBase::allRevisions() Queries all the revisions. Return value $this Overrides QueryInterface::allRevisions File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 261 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function allRevisions() { $this->allRevisions = TRUE; return $this; }

QueryBase::aggregate

public QueryBase::aggregate($field, $function, $langcode = NULL, &$alias = NULL) File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 379 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function aggregate($field, $function, $langcode = NULL, &$alias = NULL) { if (!isset($alias)) { $alias = $this->getAggregationAlias($field, $function); } $this->aggregate[$alias] = array( 'field' => $field, 'function'

QueryBase::addTag

public QueryBase::addTag($tag) Adds a tag to a query. Tags are strings that identify a query. A query may have any number of tags. Tags are used to mark a query so that alter hooks may decide if they wish to take action. Tags should be all lower-case and contain only letters, numbers, and underscore, and start with a letter. That is, they should follow the same rules as PHP identifiers in general. Parameters $tag: The tag to add. Return value \Drupal\Core\Database\Query\AlterableInterface The

QueryBase::addMetaData

public QueryBase::addMetaData($key, $object) Adds additional metadata to the query. Often, a query may need to provide additional contextual data to alter hooks. Alter hooks may then use that information to decide if and how to take action. Parameters $key: The unique identifier for this piece of metadata. Must be a string that follows the same rules as any other PHP identifier. $object: The additional data to add to the query. May be any valid PHP variable. Return value \Drupal\Core\Database

QueryBase::accessCheck

public QueryBase::accessCheck($access_check = TRUE) Return value \Drupal\Core\Entity\Query\QueryInterface The called object. Overrides QueryInterface::accessCheck File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 245 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function accessCheck($access_check = TRUE) { $this->accessCheck = $access_check; return $this; }

QueryBase::$sortAggregate

The list of sorts over the aggregate results. Type: array File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 74 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code protected $sortAggregate = array();