public function WorkspaceRepository::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::__construct()
- 10 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::__construct()
Constructs a new WorkspaceRepository instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
File
- core/
modules/ workspaces/ src/ WorkspaceRepository.php, line 44
Class
- WorkspaceRepository
- Provides the default workspace tree lookup operations.
Namespace
Drupal\workspacesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, CacheBackendInterface $cache_backend) {
$this->entityTypeManager = $entity_type_manager;
$this->cache = $cache_backend;
}