public function TestWorkspaceNegotiator::applies in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::applies()
- 10 core/modules/workspaces/tests/modules/workspace_update_test/src/Negotiator/TestWorkspaceNegotiator.php \Drupal\workspace_update_test\Negotiator\TestWorkspaceNegotiator::applies()
Checks whether the negotiator applies to the current request or not.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The HTTP request.
Return value
bool TRUE if the negotiator applies for the current request, FALSE otherwise.
Overrides WorkspaceNegotiatorInterface::applies
File
- core/
modules/ workspaces/ tests/ modules/ workspace_update_test/ src/ Negotiator/ TestWorkspaceNegotiator.php, line 18
Class
- TestWorkspaceNegotiator
- Defines a workspace negotiator used for testing.
Namespace
Drupal\workspace_update_test\NegotiatorCode
public function applies(Request $request) {
return TRUE;
}