You are here

public function WorkspacePublisher::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::__construct()
  2. 10 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::__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.

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

File

core/modules/workspaces/src/WorkspacePublisher.php, line 66

Class

WorkspacePublisher
Default implementation of the workspace publisher.

Namespace

Drupal\workspaces

Code

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