You are here

public function WorkspaceManagerInterface::setActiveWorkspace in Multiversion 8

Sets the active workspace for the site/session.

Parameters

\Drupal\multiversion\Entity\WorkspaceInterface $workspace: The workspace to set as active.

Return value

\Drupal\multiversion\Workspace\WorkspaceManagerInterface

Throws

WorkspaceAccessException

1 method overrides WorkspaceManagerInterface::setActiveWorkspace()
WorkspaceManager::setActiveWorkspace in src/Workspace/WorkspaceManager.php
Sets the active workspace for the site/session.

File

src/Workspace/WorkspaceManagerInterface.php, line 56

Class

WorkspaceManagerInterface

Namespace

Drupal\multiversion\Workspace

Code

public function setActiveWorkspace(WorkspaceInterface $workspace);