function 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\Negotiator

Code

public function unsetActiveWorkspace() {
  $this->session
    ->remove('active_workspace_id');
}

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