public function WorkspacePublisher::__construct in Drupal 9
Same name and namespace in other branches
- 8 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.
\Drupal\workspaces\WorkspaceInterface $source: The source workspace entity.
File
- core/
modules/ workspaces/ src/ WorkspacePublisher.php, line 68
Class
- WorkspacePublisher
- Default implementation of the workspace publisher.
Namespace
Drupal\workspacesCode
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;
}