function Query::isSimpleQuery
Determines whether the query requires GROUP BY and ORDER BY MIN/MAX.
Return value
bool TRUE if the query is a simple query which does not require GROUP BY and ORDER BY MIN/MAX. Otherwise FALSE.
1 call to Query::isSimpleQuery()
- Query::addSort in core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Query.php - Adds the sort to the build query.
File
-
core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Query.php, line 323
Class
- Query
- The SQL storage entity query class.
Namespace
Drupal\Core\Entity\Query\SqlCode
protected function isSimpleQuery() {
$isSimpleRange = !$this->range || $this->range['start'] === 0 && $this->range['length'] === 1;
return !$this->pager && $isSimpleRange && !$this->count || $this->sqlQuery
->getMetaData('simple_query');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.