You are here

public function AuthenticationManager::applies in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Authentication/AuthenticationManager.php \Drupal\Core\Authentication\AuthenticationManager::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.

Overrides AuthenticationProviderInterface::applies

File

core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 45
Contains \Drupal\Core\Authentication\AuthenticationManager.

Class

AuthenticationManager
Manager for authentication.

Namespace

Drupal\Core\Authentication

Code

public function applies(Request $request) {
  return (bool) $this
    ->getProvider($request);
}