You are here

public function WorkspaceNegotiatorInterface::setActiveWorkspace in Drupal 8

Same name and namespace in other branches
  1. 9 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()

Sets the negotiated workspace.

Parameters

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

1 method overrides WorkspaceNegotiatorInterface::setActiveWorkspace()
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);