function QueryTrait::isSimpleQuery
Same name in other branches
- 8.9.x core/modules/workspaces/src/EntityQuery/QueryTrait.php \Drupal\workspaces\EntityQuery\QueryTrait::isSimpleQuery()
- 10 core/modules/workspaces/src/EntityQuery/QueryTrait.php \Drupal\workspaces\EntityQuery\QueryTrait::isSimpleQuery()
- 11.x 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.