QueryInterface::tableSort

public QueryInterface::tableSort(&$headers) Enables sortable tables for this query. Parameters $headers: An array of headers of the same structure as described in template_preprocess_table(). Use a 'specifier' in place of a 'field' to specify what to sort on. This can be an entity or a field as described in condition(). Return value \Drupal\Core\Entity\Query\QueryInterface The called object. File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 176 Class QueryInterface Inte

QueryInterface::sort

public QueryInterface::sort($field, $direction = 'ASC', $langcode = NULL) Parameters $field: Name of a field. string $direction: $langcode: Language code (optional). Return value \Drupal\Core\Entity\Query\QueryInterface The called object. File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 152 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function sort($field, $direction = 'ASC', $langcode = NULL);

QueryInterface::range

public QueryInterface::range($start = NULL, $length = NULL) Parameters null $start: null $length: Return value \Drupal\Core\Entity\Query\QueryInterface The called object. File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 141 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function range($start = NULL, $length = NULL);

QueryInterface::pager

public QueryInterface::pager($limit = 10, $element = NULL) Enables a pager for the query. Parameters $limit: An integer specifying the number of elements per page. If passed a false value (FALSE, 0, NULL), the pager is disabled. $element: An optional integer to distinguish between multiple pagers on one page. If not provided, one is automatically calculated. Return value \Drupal\Core\Entity\Query\QueryInterface The called object. File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line

QueryInterface::orConditionGroup

public QueryInterface::orConditionGroup() Creates a new group of conditions ORed together. For example, consider a map entity with an 'attributes' field containing 'building_type' and 'color' columns. To find all green and red bikesheds: $query = \Drupal::entityQuery('map'); $group = $query->orConditionGroup() ->condition('attributes.color', 'red') ->condition('attributes.color', 'green'); $entity_ids = $query ->condition('attributes.building_type', 'bikeshed')

QueryInterface::notExists

public QueryInterface::notExists($field, $langcode = NULL) Queries for an empty field. Parameters $field.: Name of a field. $langcode: Language code (optional). Return value \Drupal\Core\Entity\Query\QueryInterface File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 118 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function notExists($field, $langcode = NULL);

QueryInterface::getEntityTypeId

public QueryInterface::getEntityTypeId() Gets the ID of the entity type for this query. Return value string File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 22 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function getEntityTypeId();

QueryInterface::exists

public QueryInterface::exists($field, $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 File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 107 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function exists($field, $langcode = NULL);

QueryInterface::execute

public QueryInterface::execute() Execute the query. Return value int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not. File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 192 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function execute();

QueryInterface::currentRevision

public QueryInterface::currentRevision() Queries the current revision. Return value $this File core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 250 Class QueryInterface Interface for entity queries. Namespace Drupal\Core\Entity\Query Code public function currentRevision();