You are here

public function WorkspaceOperationFactory::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspaceOperationFactory.php \Drupal\workspaces\WorkspaceOperationFactory::__construct()

Constructs a new WorkspacePublisher.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Database\Connection $database: Database connection.

\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

\Drupal\workspaces\WorkspaceAssociationInterface $workspace_association: The workspace association service.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator service.

File

core/modules/workspaces/src/WorkspaceOperationFactory.php, line 68

Class

WorkspaceOperationFactory
Defines a factory class for workspace operations.

Namespace

Drupal\workspaces

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, WorkspaceManagerInterface $workspace_manager, WorkspaceAssociationInterface $workspace_association, CacheTagsInvalidatorInterface $cache_tags_invalidator) {
  $this->entityTypeManager = $entity_type_manager;
  $this->database = $database;
  $this->workspaceManager = $workspace_manager;
  $this->workspaceAssociation = $workspace_association;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
}