public function SessionWorkspaceNegotiator::unsetActiveWorkspace in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php \Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator::unsetActiveWorkspace()
- 10 core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php \Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator::unsetActiveWorkspace()
Unsets the negotiated workspace.
Overrides WorkspaceNegotiatorInterface::unsetActiveWorkspace
File
- core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php, line 84
Class
- SessionWorkspaceNegotiator
- Defines the session workspace negotiator.
Namespace
Drupal\workspaces\NegotiatorCode
public function unsetActiveWorkspace() {
$this->session
->remove('active_workspace_id');
}