protected function AccessToken::normalize in Simple OAuth (OAuth2) & OpenID Connect 8
Normalize the entity by extracting its important values.
Return value
array The normalized entity.
File
- src/
Entity/ AccessToken.php, line 344
Class
- AccessToken
- Defines the Access Token entity.
Namespace
Drupal\simple_oauth\EntityCode
protected function normalize() {
$keys = [
'auth_user_id',
'expire',
'created',
'resource',
];
$values = array_map(function ($item) {
return $this
->get($item)
->getValue();
}, $keys);
return $values;
}