public function ApiKeyForm::getUserEntity in Services API Key Authentication 3.0.x
1 call to ApiKeyForm::getUserEntity()
- ApiKeyForm::form in src/
Form/ ApiKeyForm.php - Gets the actual form array to be built.
File
- src/
Form/ ApiKeyForm.php, line 67
Class
- ApiKeyForm
- Class ApiKeyForm.
Namespace
Drupal\services_api_key_auth\FormCode
public function getUserEntity($uuid) {
if (empty($uuid)) {
return;
}
$account = \Drupal::entityTypeManager()
->getStorage('user')
->loadByProperties([
'uuid' => $uuid,
]);
$account = current($account);
return is_object($account) ? $account : '';
}