public function UsersJwtKeyRepository::offsetGet in JSON Web Token Authentication (JWT) 8
Extends \ArrayAccess::offsetGet().
Parameters
string $id: A key ID.
Return value
string|null The public key for a key ID, or null if there is no such key.
Overrides UsersJwtKeyRepositoryInterface::offsetGet
File
- modules/
users_jwt/ src/ UsersJwtKeyRepository.php, line 153
Class
- UsersJwtKeyRepository
- Class UsersJwtKeyRepository
Namespace
Drupal\users_jwtCode
public function offsetGet($offset) {
$key = $this
->getKey($offset);
return $key ? $key->pubkey : NULL;
}