function WorkspaceManagerInterface::setActiveWorkspace

Same name in other branches
  1. 9 core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::setActiveWorkspace()
  2. 8.9.x core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::setActiveWorkspace()
  3. 11.x core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::setActiveWorkspace()

Sets the active workspace via the workspace negotiators.

Parameters

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

Return value

$this

Throws

\Drupal\workspaces\WorkspaceAccessException Thrown when the current user doesn't have access to view the workspace.

File

core/modules/workspaces/src/WorkspaceManagerInterface.php, line 68

Class

WorkspaceManagerInterface
Provides an interface for managing Workspaces.

Namespace

Drupal\workspaces

Code

public function setActiveWorkspace(WorkspaceInterface $workspace);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.