You are here

public function WorkspaceNegotiatorInterface::getActiveWorkspace in Workspace 8.2

Gets the negotiated workspace, if any.

Note that it is the responsibility of each implementation to check whether the negotiated workspace actually exists in the storage.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The HTTP request.

Return value

\Drupal\workspace\WorkspaceInterface|null The negotiated workspace or NULL if the negotiator could not determine a valid workspace.

2 methods override WorkspaceNegotiatorInterface::getActiveWorkspace()
DefaultWorkspaceNegotiator::getActiveWorkspace in src/Negotiator/DefaultWorkspaceNegotiator.php
Gets the negotiated workspace, if any.
SessionWorkspaceNegotiator::getActiveWorkspace in src/Negotiator/SessionWorkspaceNegotiator.php
Gets the negotiated workspace, if any.

File

src/Negotiator/WorkspaceNegotiatorInterface.php, line 40

Class

WorkspaceNegotiatorInterface
Workspace negotiators provide a way to get the active workspace.

Namespace

Drupal\workspace\Negotiator

Code

public function getActiveWorkspace(Request $request);