function WorkspaceAssociation::__construct
Same name in other branches
- 9 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::__construct()
- 10 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::__construct()
- 11.x core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::__construct()
Constructs a WorkspaceAssociation object.
Parameters
\Drupal\Core\Database\Connection $connection: A database connection for reading and writing path aliases.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager for querying revisions.
\Drupal\workspaces\WorkspaceRepositoryInterface $workspace_repository: The Workspace repository service.
File
-
core/
modules/ workspaces/ src/ WorkspaceAssociation.php, line 51
Class
- WorkspaceAssociation
- Provides a class for CRUD operations on workspace associations.
Namespace
Drupal\workspacesCode
public function __construct(Connection $connection, EntityTypeManagerInterface $entity_type_manager, WorkspaceRepositoryInterface $workspace_repository) {
$this->database = $connection;
$this->entityTypeManager = $entity_type_manager;
$this->workspaceRepository = $workspace_repository;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.