Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Query.php

function Query::isSimpleQuery

Determines whether the query requires GROUP BY and ORDER BY MIN/MAX.

Return value

bool

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 305

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal