public function AuthenticationProviderInterface::applies in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\AuthenticationProviderInterface::applies()
- 9 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.
4 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.
- TestAuth::applies in core/
modules/ rest/ tests/ modules/ rest_test/ src/ Authentication/ Provider/ TestAuth.php - Checks whether suitable authentication credentials are on the request.
- TestAuthenticationProvider::applies in core/
tests/ Drupal/ Tests/ Core/ Authentication/ AuthenticationCollectorTest.php - Checks whether suitable authentication credentials are on the request.
- TestAuthGlobal::applies in core/
modules/ rest/ tests/ modules/ rest_test/ src/ Authentication/ Provider/ TestAuthGlobal.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);