public function QueryTrait::isSimpleQuery in Drupal 9
Same name and namespace in other branches
- 8 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\EntityQueryCode
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();
}