function WorkspacePublisher::getDifferringRevisionIdsOnSource

Same name in other branches
  1. 9 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getDifferringRevisionIdsOnSource()
  2. 8.9.x core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getDifferringRevisionIdsOnSource()
  3. 11.x core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getDifferringRevisionIdsOnSource()

Overrides WorkspaceOperationInterface::getDifferringRevisionIdsOnSource

1 call to WorkspacePublisher::getDifferringRevisionIdsOnSource()
WorkspacePublisher::getNumberOfChangesOnSource in core/modules/workspaces/src/WorkspacePublisher.php
Gets the total number of items which have changed on the source.

File

core/modules/workspaces/src/WorkspacePublisher.php, line 230

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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.