public function WorkspaceMerger::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::__construct()
- 9 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::__construct()
Constructs a new WorkspaceMerger.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Database\Connection $database: Database connection.
\Drupal\workspaces\WorkspaceAssociationInterface $workspace_association: The workspace association service.
\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator service.
\Drupal\workspaces\WorkspaceInterface $source: The source workspace.
\Drupal\workspaces\WorkspaceInterface $target: The target workspace.
File
- core/modules/ workspaces/ src/ WorkspaceMerger.php, line 74 
Class
- WorkspaceMerger
- Default implementation of the workspace merger.
Namespace
Drupal\workspacesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, WorkspaceAssociationInterface $workspace_association, CacheTagsInvalidatorInterface $cache_tags_invalidator, WorkspaceInterface $source, WorkspaceInterface $target) {
  $this->entityTypeManager = $entity_type_manager;
  $this->database = $database;
  $this->workspaceAssociation = $workspace_association;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->sourceWorkspace = $source;
  $this->targetWorkspace = $target;
}