function TestWorkspaceNegotiator::getActiveWorkspaceId
Same name and namespace in other branches
- 10 core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::getActiveWorkspaceId()
Performs workspace negotiation.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The HTTP request.
Return value
string|null A valid workspace ID if the negotiation was successful, NULL otherwise.
Overrides WorkspaceIdNegotiatorInterface::getActiveWorkspaceId
1 call to TestWorkspaceNegotiator::getActiveWorkspaceId()
- TestWorkspaceNegotiator::getActiveWorkspace in core/
modules/ workspaces/ tests/ modules/ workspace_update_test/ src/ Negotiator/ TestWorkspaceNegotiator.php
File
-
core/
modules/ workspaces/ tests/ modules/ workspace_update_test/ src/ Negotiator/ TestWorkspaceNegotiator.php, line 28
Class
- TestWorkspaceNegotiator
- Defines a workspace negotiator used for testing.
Namespace
Drupal\workspace_update_test\NegotiatorCode
public function getActiveWorkspaceId(Request $request) : ?string {
return 'test';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.