public function PersistentToken::setExpiry in Persistent Login 8
Set the expiry time for this token.
Parameters
\DateTimeInterface $date: The expiry time.
Return value
$this
File
- src/
PersistentToken.php, line 285
Class
- PersistentToken
- Class PersistentToken.
Namespace
Drupal\persistent_loginCode
public function setExpiry(\DateTimeInterface $date) {
$this->expires = $date;
return $this;
}