function 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/ src/ WorkspaceListBuilder.php, line 103
Class
- WorkspaceListBuilder
- Defines a class to build a listing of workspace entities.
Namespace
Drupal\workspacesCode
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.