function WorkspaceNegotiatorInterface::setActiveWorkspace

Same name in other branches
  1. 8.9.x core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()
  2. 10 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()
  3. 11.x core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::setActiveWorkspace()

Sets the negotiated workspace.

Parameters

\Drupal\workspaces\WorkspaceInterface $workspace: The workspace entity.

2 methods override WorkspaceNegotiatorInterface::setActiveWorkspace()
SessionWorkspaceNegotiator::setActiveWorkspace in core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php
Sets the negotiated workspace.
TestWorkspaceNegotiator::setActiveWorkspace in core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php
Sets the negotiated workspace.

File

core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php, line 48

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.