function WorkspaceNegotiatorInterface::applies
Same name in other branches
- 9 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::applies()
- 8.9.x core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::applies()
- 10 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::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.
2 methods override WorkspaceNegotiatorInterface::applies()
- SessionWorkspaceNegotiator::applies in core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php - Checks whether the negotiator applies to the current request or not.
- TestWorkspaceNegotiator::applies in core/
modules/ workspaces/ tests/ modules/ workspace_update_test/ src/ Negotiator/ TestWorkspaceNegotiator.php - Checks whether the negotiator applies to the current request or not.
File
-
core/
modules/ workspaces/ src/ Negotiator/ WorkspaceNegotiatorInterface.php, line 25
Class
- WorkspaceNegotiatorInterface
- Workspace negotiators provide a way to get the active workspace.
Namespace
Drupal\workspaces\NegotiatorCode
public function applies(Request $request);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.