You are here

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_login

Code

public function setExpiry(\DateTimeInterface $date) {
  $this->expires = $date;
  return $this;
}