function SessionWorkspaceNegotiator::getActiveWorkspaceId
Same name in other branches
- 10 core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php \Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator::getActiveWorkspaceId()
Overrides WorkspaceIdNegotiatorInterface::getActiveWorkspaceId
1 call to SessionWorkspaceNegotiator::getActiveWorkspaceId()
- SessionWorkspaceNegotiator::getActiveWorkspace in core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php
1 method overrides SessionWorkspaceNegotiator::getActiveWorkspaceId()
- QueryParameterWorkspaceNegotiator::getActiveWorkspaceId in core/
modules/ workspaces/ src/ Negotiator/ QueryParameterWorkspaceNegotiator.php - Performs workspace negotiation.
File
-
core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php, line 33
Class
- SessionWorkspaceNegotiator
- Defines the session workspace negotiator.
Namespace
Drupal\workspaces\NegotiatorCode
public function getActiveWorkspaceId(Request $request) : ?string {
return $this->session
->get('active_workspace_id');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.