Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/UserStorageInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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 } |