class WorkspaceOperationFactory (View source)

internal  
 

Defines a factory class for workspace operations.

Properties

protected EntityTypeManagerInterface $entityTypeManager

The entity type manager.

protected Connection $database

The database connection.

protected WorkspaceManagerInterface $workspaceManager

The workspace manager.

protected WorkspaceAssociationInterface $workspaceAssociation

The workspace association service.

protected CacheTagsInvalidatorInterface $cacheTagsInvalidator

The cache tags invalidator.

Methods

__construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, WorkspaceManagerInterface $workspace_manager, WorkspaceAssociationInterface $workspace_association, CacheTagsInvalidatorInterface $cache_tags_invalidator)

Constructs a new WorkspacePublisher.

getPublisher(WorkspaceInterface $source)

Gets the workspace publisher.

getMerger(WorkspaceInterface $source, WorkspaceInterface $target)

Gets the workspace merger.

Details

__construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, WorkspaceManagerInterface $workspace_manager, WorkspaceAssociationInterface $workspace_association, CacheTagsInvalidatorInterface $cache_tags_invalidator)

Constructs a new WorkspacePublisher.

Parameters

EntityTypeManagerInterface $entity_type_manager

The entity type manager.

Connection $database

Database connection.

WorkspaceManagerInterface $workspace_manager

The workspace manager service.

WorkspaceAssociationInterface $workspace_association

The workspace association service.

CacheTagsInvalidatorInterface $cache_tags_invalidator

The cache tags invalidator service.

WorkspacePublisherInterface getPublisher(WorkspaceInterface $source)

Gets the workspace publisher.

Parameters

WorkspaceInterface $source

A workspace entity.

Return Value

WorkspacePublisherInterface

A workspace publisher object.

WorkspaceMergerInterface getMerger(WorkspaceInterface $source, WorkspaceInterface $target)

Gets the workspace merger.

Parameters

WorkspaceInterface $source

The source workspace entity.

WorkspaceInterface $target

The target workspace entity.

Return Value

WorkspaceMergerInterface

A workspace merger object.