function WorkspaceListBuilder::getEntityListQuery
Same name in this branch
- 11.x core/modules/workspaces/src/WorkspaceListBuilder.php \Drupal\workspaces\WorkspaceListBuilder::getEntityListQuery()
Same name and namespace in other branches
- main core/modules/workspaces_ui/src/WorkspaceListBuilder.php \Drupal\workspaces_ui\WorkspaceListBuilder::getEntityListQuery()
Returns a query object for loading entity IDs from the storage.
Return value
\Drupal\Core\Entity\Query\QueryInterface A query object used to load entity IDs.
Overrides EntityListBuilder::getEntityListQuery
File
-
core/
modules/ workspaces_ui/ src/ WorkspaceListBuilder.php, line 106
Class
- WorkspaceListBuilder
- Defines a class to build a listing of workspace entities.
Namespace
Drupal\workspaces_uiCode
protected function getEntityListQuery() : QueryInterface {
$query = parent::getEntityListQuery();
// Ensure that only workspaces using the default provider are listed.
$query->condition('provider', DefaultWorkspaceProvider::getId());
return $query;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.