W3cubDocs

/Drupal 8

protected function 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 290

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');
}

© 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!Sql!Query.php/function/Query::isSimpleQuery/8.1.x