You are here

public function QueryTrait::isSimpleQuery in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/EntityQuery/QueryTrait.php \Drupal\workspaces\EntityQuery\QueryTrait::isSimpleQuery()
  2. 9 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();
}