5 use Drupal\Core\Entity\ContentEntityStorageInterface;
6 use Drupal\Core\Session\AccountInterface;
9 * Defines an interface for user entity storage classes.
11 interface UserStorageInterface extends ContentEntityStorageInterface {
14 * Update the last login timestamp of the user.
16 * @param \Drupal\user\UserInterface $account
18 public function updateLastLoginTimestamp(UserInterface $account);
21 * Update the last access timestamp of the user.
23 * @param \Drupal\Core\Session\AccountInterface $account
25 * @param int $timestamp
26 * The last access timestamp.
28 public function updateLastAccessTimestamp(AccountInterface $account, $timestamp);
31 * Delete role references.
34 * The list of role IDs being deleted. The storage should
35 * remove permission and user references to this role.
37 public function deleteRoleReferences(array $rids);