QueryBase::hasAnyTag

public QueryBase::hasAnyTag() Determines if a given query has any specified tag. Parameters $tags: A variable number of arguments, one for each tag to check. Return value TRUE if this query has been marked with at least one of the specified tags, FALSE otherwise. Overrides AlterableInterface::hasAnyTag File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 357 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function hasAnyTag() { retu

QueryBase::hasAllTags

public QueryBase::hasAllTags() Determines if a given query has all specified tags. Parameters $tags: A variable number of arguments, one for each tag to check. Return value TRUE if this query has been marked with all specified tags, FALSE otherwise. Overrides AlterableInterface::hasAllTags File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 350 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function hasAllTags() { return !(boolean

QueryBase::groupBy

public QueryBase::groupBy($field, $langcode = NULL) File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 424 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function groupBy($field, $langcode = NULL) { $this->groupBy[] = array( 'field' => $field, 'langcode' => $langcode, ); return $this; }

QueryBase::getMetaData

public QueryBase::getMetaData($key) Retrieves a given piece of metadata. Parameters $key: The unique identifier for the piece of metadata to retrieve. Return value The previously attached metadata object, or NULL if one doesn't exist. Overrides AlterableInterface::getMetaData File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 372 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function getMetaData($key) { return isset($this->al

QueryBase::getEntityTypeId

public QueryBase::getEntityTypeId() Gets the ID of the entity type for this query. Return value string Overrides QueryInterface::getEntityTypeId File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 152 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function getEntityTypeId() { return $this->entityTypeId; }

QueryBase::getClass

public static QueryBase::getClass(array $namespaces, $short_class_name) Finds a class in a list of namespaces. Parameters array $namespaces: A list of namespaces. string $short_class_name: A class name without namespace. Return value string The fully qualified name of the class. File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 477 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public static function getClass(array $namespaces, $short_cl

QueryBase::getAggregationAlias

protected QueryBase::getAggregationAlias($field, $function) Generates an alias for a field and it's aggregated function. Parameters string $field: The field name used in the alias. string $function: The aggregation function used in the alias. Return value string The alias for the field. File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 444 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code protected function getAggregationAlias($field, $func

QueryBase::exists

public QueryBase::exists($property, $langcode = NULL) Queries for a non-empty value on a field. Parameters $field: Name of a field. $langcode: Language code (optional). Return value \Drupal\Core\Entity\Query\QueryInterface Overrides QueryInterface::exists File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 167 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function exists($property, $langcode = NULL) { $this->condition->exis

QueryBase::currentRevision

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

QueryBase::count

public QueryBase::count() Makes this a count query. For count queries, execute() returns the number entities found. Return value \Drupal\Core\Entity\Query\QueryInterface The called object. Overrides QueryInterface::count File core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 237 Class QueryBase The base entity query class. Namespace Drupal\Core\Entity\Query Code public function count() { $this->count = TRUE; return $this; }