interface WorkspaceOperationInterface in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/WorkspaceOperationInterface.php \Drupal\workspaces\WorkspaceOperationInterface
- 10 core/modules/workspaces/src/WorkspaceOperationInterface.php \Drupal\workspaces\WorkspaceOperationInterface
Defines an interface for workspace operations.
Example operations are publishing, merging and syncing with a remote workspace.
@internal
Hierarchy
- interface \Drupal\workspaces\WorkspaceOperationInterface
Expanded class hierarchy of WorkspaceOperationInterface
All classes that implement WorkspaceOperationInterface
File
- core/modules/ workspaces/ src/ WorkspaceOperationInterface.php, line 13 
Namespace
Drupal\workspacesView source
interface WorkspaceOperationInterface {
  /**
   * Returns the human-readable label of the source.
   *
   * @return string
   *   The source label.
   */
  public function getSourceLabel();
  /**
   * Returns the human-readable label of the target.
   *
   * @return string
   *   The target label.
   */
  public function getTargetLabel();
  /**
   * Checks if there are any conflicts between the source and the target.
   *
   * @return array
   *   Returns an array consisting of the number of conflicts between the source
   *   and the target, keyed by the conflict type constant.
   */
  public function checkConflictsOnTarget();
  /**
   * Gets the revision identifiers for items which have changed on the target.
   *
   * @return array
   *   A multidimensional array of revision identifiers, keyed by entity type
   *   IDs.
   */
  public function getDifferringRevisionIdsOnTarget();
  /**
   * Gets the revision identifiers for items which have changed on the source.
   *
   * @return array
   *   A multidimensional array of revision identifiers, keyed by entity type
   *   IDs.
   */
  public function getDifferringRevisionIdsOnSource();
  /**
   * Gets the total number of items which have changed on the target.
   *
   * This returns the aggregated changes count across all entity types.
   * For example, if two nodes and one taxonomy term have changed on the target,
   * the return value is 3.
   *
   * @return int
   *   The number of differing revisions.
   */
  public function getNumberOfChangesOnTarget();
  /**
   * Gets the total number of items which have changed on the source.
   *
   * This returns the aggregated changes count across all entity types.
   * For example, if two nodes and one taxonomy term have changed on the source,
   * the return value is 3.
   *
   * @return int
   *   The number of differing revisions.
   */
  public function getNumberOfChangesOnSource();
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| WorkspaceOperationInterface:: | public | function | Checks if there are any conflicts between the source and the target. | 2 | 
| WorkspaceOperationInterface:: | public | function | Gets the revision identifiers for items which have changed on the source. | 2 | 
| WorkspaceOperationInterface:: | public | function | Gets the revision identifiers for items which have changed on the target. | 2 | 
| WorkspaceOperationInterface:: | public | function | Gets the total number of items which have changed on the source. | 2 | 
| WorkspaceOperationInterface:: | public | function | Gets the total number of items which have changed on the target. | 2 | 
| WorkspaceOperationInterface:: | public | function | Returns the human-readable label of the source. | 2 | 
| WorkspaceOperationInterface:: | public | function | Returns the human-readable label of the target. | 2 | 
