You are here

public static function AccessTokenValue::createFromValues in Simple OAuth (OAuth2) & OpenID Connect 8

Factory method to create a token value from the entity values.

Parameters

array $values: The values to digest.

Return value

AccessTokenValueInterface The token value.

Overrides AccessTokenValueInterface::createFromValues

File

src/AccessTokenValue.php, line 35

Class

AccessTokenValue

Namespace

Drupal\simple_oauth

Code

public static function createFromValues(array $values) {
  $token_value = new static();
  $token_value
    ->setValues($values);
  return $token_value;
}