You are here

public function WorkspaceRepository::__construct in Drupal 8

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

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, CacheBackendInterface $cache_backend) {
  $this->entityTypeManager = $entity_type_manager;
  $this->cache = $cache_backend;
}