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

Code

public function setActiveWorkspace(WorkspaceInterface $workspace);

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