function WorkspaceOperationFactory::getMerger
Same name in other branches
- 9 core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getMerger()
- 8.9.x core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getMerger()
- 11.x core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getMerger()
Gets the workspace merger.
Parameters
\Drupal\workspaces\WorkspaceInterface $source: The source workspace entity.
\Drupal\workspaces\WorkspaceInterface $target: The target workspace entity.
Return value
\Drupal\workspaces\WorkspaceMergerInterface A workspace merger object.
File
-
core/
modules/ workspaces/ src/ WorkspaceOperationFactory.php, line 139
Class
- WorkspaceOperationFactory
- Defines a factory class for workspace operations.
Namespace
Drupal\workspacesCode
public function getMerger(WorkspaceInterface $source, WorkspaceInterface $target) {
return new WorkspaceMerger($this->entityTypeManager, $this->database, $this->workspaceAssociation, $source, $target, $this->logger);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.