W3cubDocs

/Drupal 8

interface QueryInterface

Interface for entity queries.

Never instantiate classes implementing this interface directly. Always use the QueryFactory class.

Hierarchy

Related topics

Database abstraction layer
Allow the use of different database servers using the same code base.

File

core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 15

Namespace

Drupal\Core\Entity\Query

Members

Name Modifiers Type Description
AlterableInterface::addMetaData public function Adds additional metadata to the query.
AlterableInterface::addTag public function Adds a tag to a query.
AlterableInterface::getMetaData public function Retrieves a given piece of metadata.
AlterableInterface::hasAllTags public function Determines if a given query has all specified tags.
AlterableInterface::hasAnyTag public function Determines if a given query has any specified tag.
AlterableInterface::hasTag public function Determines if a given query has a given tag.
QueryInterface::accessCheck public function
QueryInterface::allRevisions public function Queries all the revisions.
QueryInterface::andConditionGroup public function Creates a new group of conditions ANDed together.
QueryInterface::condition public function Add a condition to the query or a condition group.
QueryInterface::count public function Makes this a count query.
QueryInterface::currentRevision public function Queries the current revision.
QueryInterface::execute public function Execute the query.
QueryInterface::exists public function Queries for a non-empty value on a field.
QueryInterface::getEntityTypeId public function Gets the ID of the entity type for this query.
QueryInterface::notExists public function Queries for an empty field.
QueryInterface::orConditionGroup public function Creates a new group of conditions ORed together.
QueryInterface::pager public function Enables a pager for the query.
QueryInterface::range public function
QueryInterface::sort public function
QueryInterface::tableSort public function Enables sortable tables for this query.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!QueryInterface.php/interface/QueryInterface/8.1.x