public function WorkspaceNegotiatorInterface::setActiveWorkspace in Workspace 8.2
Sets the negotiated workspace.
Parameters
\Drupal\workspace\WorkspaceInterface $workspace: The workspace entity.
2 methods override WorkspaceNegotiatorInterface::setActiveWorkspace()
- DefaultWorkspaceNegotiator::setActiveWorkspace in src/
Negotiator/ DefaultWorkspaceNegotiator.php - Sets the negotiated workspace.
- SessionWorkspaceNegotiator::setActiveWorkspace in src/
Negotiator/ SessionWorkspaceNegotiator.php - Sets the negotiated workspace.
File
- src/
Negotiator/ WorkspaceNegotiatorInterface.php, line 48
Class
- WorkspaceNegotiatorInterface
- Workspace negotiators provide a way to get the active workspace.
Namespace
Drupal\workspace\NegotiatorCode
public function setActiveWorkspace(WorkspaceInterface $workspace);