function TestWorkspaceNegotiator::setActiveWorkspace

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::setActiveWorkspace()
  2. 10 core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::setActiveWorkspace()
  3. 9 core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::setActiveWorkspace()
  4. 8.9.x core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::setActiveWorkspace()

Notifies the negotiator that the workspace ID returned has been accepted.

Parameters

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

Overrides WorkspaceNegotiatorInterface::setActiveWorkspace

File

core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php, line 34

Class

TestWorkspaceNegotiator
Defines a workspace negotiator used for testing.

Namespace

Drupal\workspace_update_test\Negotiator

Code

public function setActiveWorkspace(WorkspaceInterface $workspace) : void {
  // Nothing to do here.
}

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