public function KeyAuthInterface::getKey in Key auth 8
Get the key provided in the current request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The current request.
Return value
string|false The API key provided in the request, or FALSE if there was not one.
1 method overrides KeyAuthInterface::getKey()
- KeyAuth::getKey in src/
KeyAuth.php - Get the key provided in the current request.
File
- src/
KeyAuthInterface.php, line 22
Class
- KeyAuthInterface
- Interface KeyAuthInterface.
Namespace
Drupal\key_authCode
public function getKey(Request $request);