public function WorkspaceManagerInterface::setActiveWorkspace in Workspace 8.2
Sets the active workspace via the workspace negotiators.
Parameters
\Drupal\workspace\WorkspaceInterface $workspace: The workspace to set as active.
Return value
$this
Throws
\Drupal\workspace\WorkspaceAccessException Thrown when the current user doesn't have access to view the workspace.
1 method overrides WorkspaceManagerInterface::setActiveWorkspace()
- WorkspaceManager::setActiveWorkspace in src/
WorkspaceManager.php - Sets the active workspace via the workspace negotiators.
File
- src/
WorkspaceManagerInterface.php, line 50
Class
- WorkspaceManagerInterface
- Provides an interface for managing Workspaces.
Namespace
Drupal\workspaceCode
public function setActiveWorkspace(WorkspaceInterface $workspace);