public function TokenAuthUser::mergeCacheMaxAge in Simple OAuth (OAuth2) & OpenID Connect 8
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::mergeCacheMaxAge()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::mergeCacheMaxAge()
- 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::mergeCacheMaxAge()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::mergeCacheMaxAge()
Merges the maximum age (in seconds) with the existing maximum age.
The max age will be set to the given value if it is lower than the existing value.
Parameters
int $max_age: The max age to associate.
Return value
$this
Throws
\InvalidArgumentException Thrown if a non-integer value is supplied.
Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge
File
- src/
Authentication/ TokenAuthUser.php, line 570
Class
- TokenAuthUser
- Class TokenAuthUser.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function mergeCacheMaxAge($max_age) {
return $this->subject
->mergeCacheMaxAge($max_age);
}