public function KeyAuth::applies in Key auth 8
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.
Overrides AuthenticationProviderInterface::applies
File
- src/
Authentication/ Provider/ KeyAuth.php, line 34  
Class
- KeyAuth
 - Key authentication provider.
 
Namespace
Drupal\key_auth\Authentication\ProviderCode
public function applies(Request $request) {
  return (bool) $this->keyAuth
    ->getKey($request);
}