function WorkspaceRepository::__construct
Same name in other branches
- 9 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::__construct()
- 10 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::__construct()
- 11.x 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.