3 namespace Drupal\workspaces;
6 * Defines an interface for workspace operations.
8 * Example operations are publishing, merging and syncing with a remote
13 interface WorkspaceOperationInterface {
16 * Returns the human-readable label of the source.
21 public function getSourceLabel();
24 * Returns the human-readable label of the target.
29 public function getTargetLabel();
32 * Checks if there are any conflicts between the source and the target.
35 * Returns an array consisting of the number of conflicts between the source
36 * and the target, keyed by the conflict type constant.
38 public function checkConflictsOnTarget();
41 * Gets the revision identifiers for items which have changed on the target.
44 * A multidimensional array of revision identifiers, keyed by entity type
47 public function getDifferringRevisionIdsOnTarget();
50 * Gets the revision identifiers for items which have changed on the source.
53 * A multidimensional array of revision identifiers, keyed by entity type
56 public function getDifferringRevisionIdsOnSource();
59 * Gets the total number of items which have changed on the target.
61 * This returns the aggregated changes count across all entity types.
62 * For example, if two nodes and one taxonomy term have changed on the target,
63 * the return value is 3.
66 * The number of differing revisions.
68 public function getNumberOfChangesOnTarget();
71 * Gets the total number of items which have changed on the source.
73 * This returns the aggregated changes count across all entity types.
74 * For example, if two nodes and one taxonomy term have changed on the source,
75 * the return value is 3.
78 * The number of differing revisions.
80 public function getNumberOfChangesOnSource();