You are here

public function KeyAuthInterface::getUserByKey in Key auth 8

Load the user associated with a given key.

Parameters

string $key: The API key to match to a user.

Return value

\Drupal\user\Entity\User|null The matching user entity, or NULL if there was no match.

1 method overrides KeyAuthInterface::getUserByKey()
KeyAuth::getUserByKey in src/KeyAuth.php
Load the user associated with a given key.

File

src/KeyAuthInterface.php, line 33

Class

KeyAuthInterface
Interface KeyAuthInterface.

Namespace

Drupal\key_auth

Code

public function getUserByKey($key);