function WorkspaceNegotiatorInterface::applies

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

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.