public function WorkspacePublisher::checkConflictsOnTarget in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::checkConflictsOnTarget()
- 10 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::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 WorkspacePublisher::checkConflictsOnTarget()
- WorkspacePublisher::publish in core/
modules/ workspaces/ src/ WorkspacePublisher.php - Publishes the contents of a workspace to the default (Live) workspace.
File
- core/
modules/ workspaces/ src/ WorkspacePublisher.php, line 145
Class
- WorkspacePublisher
- Default implementation of the workspace publisher.
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.
}