public function WorkspaceMerger::checkConflictsOnTarget in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::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.
Overrides WorkspaceOperationInterface::checkConflictsOnTarget
1 call to WorkspaceMerger::checkConflictsOnTarget()
- WorkspaceMerger::merge in core/
modules/ workspaces/ src/ WorkspaceMerger.php - Merges the contents of the source workspace into the target workspace.
File
- core/
modules/ workspaces/ src/ WorkspaceMerger.php, line 139
Class
- WorkspaceMerger
- Default implementation of the workspace merger.
Namespace
Drupal\workspacesCode
public function checkConflictsOnTarget() {
// Nothing to do for now, we can not get to a conflicting state because an
// entity which is being edited in a workspace can not be edited in any
// other workspace.
}