interface WorkspaceMergerInterface implements WorkspaceOperationInterface (View source)

internal  
 

Defines an interface for the workspace merger.

Methods

string
getSourceLabel()

Returns the human-readable label of the source.

string
getTargetLabel()

Returns the human-readable label of the target.

array
checkConflictsOnTarget()

Checks if there are any conflicts between the source and the target.

array
getDifferringRevisionIdsOnTarget()

Gets the revision identifiers for items which have changed on the target.

array
getDifferringRevisionIdsOnSource()

Gets the revision identifiers for items which have changed on the source.

int
getNumberOfChangesOnTarget()

Gets the total number of items which have changed on the target.

int
getNumberOfChangesOnSource()

Gets the total number of items which have changed on the source.

merge()

Merges the contents of the source workspace into the target workspace.

Details

string getSourceLabel()

Returns the human-readable label of the source.

Return Value

string

The source label.

string getTargetLabel()

Returns the human-readable label of the target.

Return Value

string

The target label.

array checkConflictsOnTarget()

Checks if there are any conflicts between the source and the target.

Return Value

array

Returns an array consisting of the number of conflicts between the source and the target, keyed by the conflict type constant.

array getDifferringRevisionIdsOnTarget()

Gets the revision identifiers for items which have changed on the target.

Return Value

array

A multidimensional array of revision identifiers, keyed by entity type IDs.

array 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.

int getNumberOfChangesOnTarget()

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 Value

int

The number of differing revisions.

int getNumberOfChangesOnSource()

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 Value

int

The number of differing revisions.

merge()

Merges the contents of the source workspace into the target workspace.