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\AuthenticationCode
public function applies(Request $request);