public function TokenAuthUser::getCacheMaxAge in Simple OAuth (OAuth2) & OpenID Connect 8.3
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getCacheMaxAge()
- 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getCacheMaxAge()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getCacheMaxAge()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getCacheMaxAge()
The maximum age for which this object may be cached.
Return value
int The maximum time in seconds that this object may be cached.
Overrides CacheableDependencyInterface::getCacheMaxAge
File
- src/
Authentication/ TokenAuthUser.php, line 209
Class
- TokenAuthUser
- The decorated user class with token information.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function getCacheMaxAge() {
return $this->subject
->getCacheMaxAge();
}