You are here

protected function Query::isSimpleQuery in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::isSimpleQuery()
  2. 9 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\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 303

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