You are here

public function AuthenticationInterface::applies in RESTful 7.2

Determines if the request can be checked for authentication. For example, when authenticating with HTTP header, return FALSE if the header values do not exist.

Parameters

RequestInterface $request: The request.

Return value

bool TRUE if the request can be checked for authentication, FALSE otherwise.

1 method overrides AuthenticationInterface::applies()
Authentication::applies in src/Plugin/authentication/Authentication.php
Determines if the request can be checked for authentication. For example, when authenticating with HTTP header, return FALSE if the header values do not exist.

File

src/Plugin/authentication/AuthenticationInterface.php, line 37
Contains \Drupal\restful\Plugin\authentication\Authentication

Class

AuthenticationInterface

Namespace

Drupal\restful\Plugin\authentication

Code

public function applies(RequestInterface $request);