function WorkspaceOperationFactory::getMerger

Same name in other branches
  1. 8.9.x core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getMerger()
  2. 10 core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::getMerger()
  3. 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 100

Class

WorkspaceOperationFactory
Defines a factory class for workspace operations.

Namespace

Drupal\workspaces

Code

public function getMerger(WorkspaceInterface $source, WorkspaceInterface $target) {
    return new WorkspaceMerger($this->entityTypeManager, $this->database, $this->workspaceAssociation, $this->cacheTagsInvalidator, $source, $target);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.