public function WorkspaceCacheContext::__construct in Multiversion 8
Constructs a new WorkspaceCacheContext service.
Parameters
\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager.
File
- src/
WorkspaceCacheContext.php, line 29
Class
- WorkspaceCacheContext
- Defines the WorkspaceCacheContext service, for "per workspace" caching.
Namespace
Drupal\multiversionCode
public function __construct(WorkspaceManagerInterface $workspace_manager) {
$this->workspaceManager = $workspace_manager;
}