You are here

public static function TokenAuthUser::load in Simple OAuth (OAuth2) & OpenID Connect 8.2

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.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::load()
  4. 5.x 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 319

Class

TokenAuthUser
@internal

Namespace

Drupal\simple_oauth\Authentication

Code

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