You are here

public function WorkspaceNegotiatorInterface::applies in Drupal 8

Same name and namespace in other branches
  1. 9 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.

1 method overrides WorkspaceNegotiatorInterface::applies()
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);