Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / user / src / UserStorageInterface.php
1 <?php
2
3 namespace Drupal\user;
4
5 use Drupal\Core\Entity\ContentEntityStorageInterface;
6 use Drupal\Core\Session\AccountInterface;
7
8 /**
9  * Defines an interface for user entity storage classes.
10  */
11 interface UserStorageInterface extends ContentEntityStorageInterface {
12
13   /**
14    * Update the last login timestamp of the user.
15    *
16    * @param \Drupal\user\UserInterface $account
17    */
18   public function updateLastLoginTimestamp(UserInterface $account);
19
20   /**
21    * Update the last access timestamp of the user.
22    *
23    * @param \Drupal\Core\Session\AccountInterface $account
24    *   The user object.
25    * @param int $timestamp
26    *   The last access timestamp.
27    */
28   public function updateLastAccessTimestamp(AccountInterface $account, $timestamp);
29
30   /**
31    * Delete role references.
32    *
33    * @param array $rids
34    *   The list of role IDs being deleted. The storage should
35    *   remove permission and user references to this role.
36    */
37   public function deleteRoleReferences(array $rids);
38
39 }