function WorkspaceNegotiatorInterface::setActiveWorkspace
Same name in other branches
- 9 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()
- 8.9.x core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()
- 10 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()
Notifies the negotiator that the workspace ID returned has been accepted.
Parameters
\Drupal\workspaces\WorkspaceInterface $workspace: The negotiated workspace entity.
2 methods override WorkspaceNegotiatorInterface::setActiveWorkspace()
- SessionWorkspaceNegotiator::setActiveWorkspace in core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php - Notifies the negotiator that the workspace ID returned has been accepted.
- TestWorkspaceNegotiator::setActiveWorkspace in core/
modules/ workspaces/ tests/ modules/ workspace_update_test/ src/ Negotiator/ TestWorkspaceNegotiator.php - Notifies the negotiator that the workspace ID returned has been accepted.
File
-
core/
modules/ workspaces/ src/ Negotiator/ WorkspaceNegotiatorInterface.php, line 33
Class
- WorkspaceNegotiatorInterface
- Workspace negotiators provide a way to get the active workspace.
Namespace
Drupal\workspaces\NegotiatorCode
public function setActiveWorkspace(WorkspaceInterface $workspace);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.