You are here

public function PersistentToken::updateInstance in Persistent Login 8

Update the instance identifier.

This also updates the token's last refresh time.

Parameters

string $instance: The new instance identifier.

Return value

$this

File

src/PersistentToken.php, line 213

Class

PersistentToken
Class PersistentToken.

Namespace

Drupal\persistent_login

Code

public function updateInstance($instance) {
  $this->instance = $instance;
  return $this
    ->setRefreshed(new \DateTime());
}