public function WorkspacePublisher::getDifferringRevisionIdsOnSource in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getDifferringRevisionIdsOnSource()
- 10 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getDifferringRevisionIdsOnSource()
Gets the revision identifiers for items which have changed on the source.
Return value
array A multidimensional array of revision identifiers, keyed by entity type IDs.
Overrides WorkspaceOperationInterface::getDifferringRevisionIdsOnSource
2 calls to WorkspacePublisher::getDifferringRevisionIdsOnSource()
- WorkspacePublisher::getNumberOfChangesOnSource in core/
modules/ workspaces/ src/ WorkspacePublisher.php - Gets the total number of items which have changed on the source.
- WorkspacePublisher::publish in core/
modules/ workspaces/ src/ WorkspacePublisher.php - Publishes the contents of a workspace to the default (Live) workspace.
File
- core/
modules/ workspaces/ src/ WorkspacePublisher.php, line 188
Class
- WorkspacePublisher
- Default implementation of the workspace publisher.
Namespace
Drupal\workspacesCode
public function getDifferringRevisionIdsOnSource() {
// Get the Workspace association revisions which haven't been pushed yet.
return $this->workspaceAssociation
->getTrackedEntities($this->sourceWorkspace
->id());
}