You are here

public function WorkspaceNegotiatorInterface::applies in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/Negotiator/WorkspaceNegotiatorInterface.php \Drupal\workspaces\Negotiator\WorkspaceNegotiatorInterface::applies()
  2. 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\Negotiator

Code

public function applies(Request $request);