You are here

public function WorkspacePublisher::getDifferringRevisionIdsOnSource in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getDifferringRevisionIdsOnSource()
  2. 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 185

Class

WorkspacePublisher
Default implementation of the workspace publisher.

Namespace

Drupal\workspaces

Code

public function getDifferringRevisionIdsOnSource() {

  // Get the Workspace association revisions which haven't been pushed yet.
  return $this->workspaceAssociation
    ->getTrackedEntities($this->sourceWorkspace
    ->id());
}