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

Breadcrumb

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

function 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.

3 methods override AuthenticationProviderInterface::applies()
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.

File

core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php, line 22

Class

AuthenticationProviderInterface
Interface for authentication providers.

Namespace

Drupal\Core\Authentication

Code

public function applies(Request $request);

API Navigation

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