You are here

public function TestWorkspaceNegotiator::applies in Drupal 8

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

Code

public function applies(Request $request) {
  return TRUE;
}