Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AuthenticationManager.php

function AuthenticationManager::authenticate

Overrides AuthenticationProviderInterface::authenticate

File

core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 47

Class

AuthenticationManager
Manager for authentication.

Namespace

Drupal\Core\Authentication

Code

public function authenticate(Request $request) {
    $provider_id = $this->getProvider($request);
    $provider = $this->authCollector
        ->getProvider($provider_id);
    if ($provider) {
        return $provider->authenticate($request);
    }
    return NULL;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal