function WorkspaceTrackerInterface::getTrackedInitialRevisions
Retrieves all content revisions that were created in a given workspace.
Parameters
string $workspace_id: The ID of the workspace.
string $entity_type_id: An entity type ID to find revisions for.
int[]|string[]|null $entity_ids: (optional) An array of entity IDs to filter the results by. Defaults to NULL.
Return value
array Returns an array where the values are an array of entity IDs keyed by revision IDs.
1 method overrides WorkspaceTrackerInterface::getTrackedInitialRevisions()
- WorkspaceTracker::getTrackedInitialRevisions in core/
modules/ workspaces/ src/ WorkspaceTracker.php - Retrieves all content revisions that were created in a given workspace.
File
-
core/
modules/ workspaces/ src/ WorkspaceTrackerInterface.php, line 102
Class
- WorkspaceTrackerInterface
- Defines an interface for the workspace tracker service.
Namespace
Drupal\workspacesCode
public function getTrackedInitialRevisions(string $workspace_id, string $entity_type_id, ?array $entity_ids = NULL) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.