public function WorkspaceOperationFactory::getMerger in Drupal 8
Same name and namespace in other branches
- 9 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 100
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, $this->cacheTagsInvalidator, $source, $target);
}