You are here

public function QueryTrait::isSimpleQuery in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/EntityQuery/QueryTrait.php \Drupal\workspaces\EntityQuery\QueryTrait::isSimpleQuery()
  2. 10 core/modules/workspaces/src/EntityQuery/QueryTrait.php \Drupal\workspaces\EntityQuery\QueryTrait::isSimpleQuery()

File

core/modules/workspaces/src/EntityQuery/QueryTrait.php, line 75

Class

QueryTrait
Provides workspaces-specific helpers for altering entity queries.

Namespace

Drupal\workspaces\EntityQuery

Code

public function isSimpleQuery() {

  // We declare that this is not a simple query in
  // \Drupal\workspaces\EntityQuery\QueryTrait::prepare(), but that's not
  // enough because the parent method can return TRUE in some circumstances.
  if ($this->sqlQuery
    ->getMetaData('active_workspace_id')) {
    return FALSE;
  }
  return parent::isSimpleQuery();
}