public function WorkspaceNegotiatorInterface::applies in Workspace 8.2
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()
- DefaultWorkspaceNegotiator::applies in src/
Negotiator/ DefaultWorkspaceNegotiator.php - Checks whether the negotiator applies to the current request or not.
- SessionWorkspaceNegotiator::applies in src/
Negotiator/ SessionWorkspaceNegotiator.php - Checks whether the negotiator applies to the current request or not.
File
- src/
Negotiator/ WorkspaceNegotiatorInterface.php, line 25
Class
- WorkspaceNegotiatorInterface
- Workspace negotiators provide a way to get the active workspace.
Namespace
Drupal\workspace\NegotiatorCode
public function applies(Request $request);