protected function WorkspaceManager::getWorkspaceAssociationRevisionsToPurge in Workspace 8.2
Gets a list of workspace association IDs to purge.
Parameters
string $workspace_id: The ID of the workspace.
int $batch_size: The maximum number of records that will be purged.
Return value
array An array of workspace association IDs, keyed by their revision IDs.
1 call to WorkspaceManager::getWorkspaceAssociationRevisionsToPurge()
File
- src/
WorkspaceManager.php, line 272
Class
- WorkspaceManager
- Provides the workspace manager.
Namespace
Drupal\workspaceCode
protected function getWorkspaceAssociationRevisionsToPurge($workspace_id, $batch_size) {
return $this->entityTypeManager
->getStorage('workspace_association')
->getQuery()
->allRevisions()
->accessCheck(FALSE)
->condition('workspace', $workspace_id)
->sort('revision_id', 'ASC')
->range(0, $batch_size)
->execute();
}