You are here

public function AuthenticationProviderInterface::applies in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\AuthenticationProviderInterface::applies()

Checks whether suitable authentication credentials are on the request.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

Return value

bool TRUE if authentication credentials suitable for this provider are on the request, FALSE otherwise.

5 methods override AuthenticationProviderInterface::applies()
Auth::applies in core/modules/locale/tests/modules/early_translation_test/src/Auth.php
Checks whether suitable authentication credentials are on the request.
AuthenticationManager::applies in core/lib/Drupal/Core/Authentication/AuthenticationManager.php
Checks whether suitable authentication credentials are on the request.
BasicAuth::applies in core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php
Checks whether suitable authentication credentials are on the request.
Cookie::applies in core/modules/user/src/Authentication/Provider/Cookie.php
Checks whether suitable authentication credentials are on the request.
TestAuthenticationProvider::applies in core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php
Checks whether suitable authentication credentials are on the request.

File

core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php, line 27
Contains \Drupal\Core\Authentication\AuthenticationProviderInterface.

Class

AuthenticationProviderInterface
Interface for authentication providers.

Namespace

Drupal\Core\Authentication

Code

public function applies(Request $request);