Query::notExistsAggregate

public Query::notExistsAggregate($field, $function, $langcode = NULL) Queries for the nonexistence of a field. Parameters string $field.: The name of a field. string $function: The aggregate function. string $langcode: (optional) The language code. Return value \Drupal\Core\Entity\Query\QueryAggregateInterface The called object. Overrides QueryAggregateInterface::notExistsAggregate File core/lib/Drupal/Core/Entity/Query/Null/Query.php, line 35 Class Query Defines the entity query for con

Query::nextPlaceholder

public Query::nextPlaceholder() Gets the next placeholder value for this query object. Return value int The next placeholder value. Overrides PlaceholderInterface::nextPlaceholder File core/lib/Drupal/Core/Database/Query/Query.php, line 134 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code public function nextPlaceholder() { return $this->nextPlaceholder++; }

Query::loadRecords

protected Query::loadRecords() Loads the config records to examine for the query. Return value array Config records keyed by entity IDs. File core/lib/Drupal/Core/Config/Entity/Query/Query.php, line 120 Class Query Defines the entity query for configuration entities. Namespace Drupal\Core\Config\Entity\Query Code protected function loadRecords() { $prefix = $this->entityType->getConfigPrefix() . '.'; $prefix_length = strlen($prefix); // Search the conditions for restricti

Query::isSimpleQuery

protected Query::isSimpleQuery() Determines whether the query requires GROUP BY and ORDER BY MIN/MAX. Return value bool File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 283 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected function isSimpleQuery() { return (!$this->pager && !$this->range && !$this->count) || $this->sqlQuery->getMetaData('simple_query'); }

Query::getTables

public Query::getTables(SelectInterface $sql_query) Gets the Tables object for this query. Parameters \Drupal\Core\Database\Query\SelectInterface $sql_query: The SQL query object being built. Return value \Drupal\Core\Entity\Query\Sql\TablesInterface The object that adds tables and fields to the SQL query object. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 307 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code public function ge

Query::getSqlField

protected Query::getSqlField($field, $langcode) Constructs a select expression for a given field and language. Parameters string $field: The name of the field being queried. string $langcode: The language code of the field. Return value string An expression that will select the given field for the given language in a SELECT query, such as 'base_table.id'. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 265 Class Query The SQL storage entity query class. Namespace Drupal\Cor

Query::getConfigKeyStore

protected Query::getConfigKeyStore() Gets the key value store used to store fast lookups. Return value \Drupal\Core\KeyValueStore\KeyValueStoreInterface The key value store used to store fast lookups. File core/lib/Drupal/Core/Config/Entity/Query/Query.php, line 224 Class Query Defines the entity query for configuration entities. Namespace Drupal\Core\Config\Entity\Query Code protected function getConfigKeyStore() { return $this->keyValueFactory->get(QueryFactory::CONFIG_LOOKU

Query::getComments

public &Query::getComments() Returns a reference to the comments array for the query. Because this method returns by reference, alter hooks may edit the comments array directly to make their changes. If just adding comments, however, the use of comment() is preferred. Note that this method must be called by reference as well: $comments =& $query->getComments(); Return value array A reference to the comments array structure. File core/lib/Drupal/Core/Database/Query/Query.php, line 1

Query::finish

protected Query::finish() Finish the query by adding fields, GROUP BY and range. Return value \Drupal\Core\Entity\Query\Sql\Query Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 223 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected function finish() { $this->initializePager(); if ($this->range) { $this->sqlQuery->range($this->range['start'], $this->range['length']); }

Query::existsAggregate

public Query::existsAggregate($field, $function, $langcode = NULL) Queries for the existence of a field. Parameters string $field: The name of the field. string $function: The aggregate function. $langcode: (optional) The language code. Return value \Drupal\Core\Entity\Query\QueryAggregateInterface The called object. Overrides QueryAggregateInterface::existsAggregate File core/lib/Drupal/Core/Entity/Query/Null/Query.php, line 28 Class Query Defines the entity query for configuration enti