function AuthenticationProviderInterface::applies
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\AuthenticationProviderInterface::applies()
- 10 core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\AuthenticationProviderInterface::applies()
- 11.x 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.
7 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.
- TestAuth::applies in core/
modules/ rest/ tests/ modules/ rest_test/ src/ Authentication/ Provider/ TestAuth.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\AuthenticationCode
public function applies(Request $request);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.