You are here

public static function TokenAuthUser::load in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::load()
  2. 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::load()
  3. 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::load()
  4. 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::load()

Loads an entity.

Parameters

mixed $id: The id of the entity to load.

Return value

static|null The entity object or NULL if there is no entity with the given ID.

Overrides EntityInterface::load

File

src/Authentication/TokenAuthUser.php, line 351

Class

TokenAuthUser
The decorated user class with token information.

Namespace

Drupal\simple_oauth\Authentication

Code

public static function load($id) {
  return User::load($id);
}