public function WorkspaceNegotiatorInterface::setActiveWorkspace in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()
Sets the negotiated workspace.
Parameters
\Drupal\workspaces\WorkspaceInterface $workspace: The workspace entity.
2 methods override WorkspaceNegotiatorInterface::setActiveWorkspace()
- SessionWorkspaceNegotiator::setActiveWorkspace in core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php - Sets the negotiated workspace.
- TestWorkspaceNegotiator::setActiveWorkspace in core/
modules/ workspaces/ tests/ modules/ workspace_update_test/ src/ Negotiator/ TestWorkspaceNegotiator.php - Sets the negotiated workspace.
File
- core/
modules/ workspaces/ src/ Negotiator/ WorkspaceNegotiatorInterface.php, line 48
Class
- WorkspaceNegotiatorInterface
- Workspace negotiators provide a way to get the active workspace.
Namespace
Drupal\workspaces\NegotiatorCode
public function setActiveWorkspace(WorkspaceInterface $workspace);