function WorkspaceAssociationInterface::getAssociatedInitialRevisions
Same name in other branches
- 11.x core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::getAssociatedInitialRevisions()
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[] $entity_ids: (optional) An array of entity IDs to filter the results by. Defaults to an empty array.
Return value
array Returns an array where the values are an array of entity IDs keyed by revision IDs.
File
-
core/
modules/ workspaces/ src/ WorkspaceAssociationInterface.php, line 110
Class
- WorkspaceAssociationInterface
- Defines an interface for the workspace_association service.
Namespace
Drupal\workspacesCode
public function getAssociatedInitialRevisions(string $workspace_id, string $entity_type_id, array $entity_ids = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.