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

Breadcrumb

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

function AuthenticationManager::appliesToRoutedRequest

Overrides AuthenticationProviderFilterInterface::appliesToRoutedRequest

File

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

Class

AuthenticationManager
Manager for authentication.

Namespace

Drupal\Core\Authentication

Code

public function appliesToRoutedRequest(Request $request, $authenticated) {
    $result = FALSE;
    if ($authenticated) {
        $result = $this->applyFilter($request, $authenticated, $this->getProvider($request));
    }
    else {
        foreach ($this->authCollector
            ->getSortedProviders() as $provider_id => $provider) {
            if ($this->applyFilter($request, $authenticated, $provider_id)) {
                $result = TRUE;
                break;
            }
        }
    }
    return $result;
}

API Navigation

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