Mercurial > hg > isophonics-drupal-site
annotate core/modules/user/src/UserStorageInterface.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\user; |
Chris@0 | 4 |
Chris@0 | 5 use Drupal\Core\Entity\ContentEntityStorageInterface; |
Chris@0 | 6 use Drupal\Core\Session\AccountInterface; |
Chris@0 | 7 |
Chris@0 | 8 /** |
Chris@0 | 9 * Defines an interface for user entity storage classes. |
Chris@0 | 10 */ |
Chris@0 | 11 interface UserStorageInterface extends ContentEntityStorageInterface { |
Chris@0 | 12 |
Chris@0 | 13 /** |
Chris@0 | 14 * Update the last login timestamp of the user. |
Chris@0 | 15 * |
Chris@0 | 16 * @param \Drupal\user\UserInterface $account |
Chris@0 | 17 */ |
Chris@0 | 18 public function updateLastLoginTimestamp(UserInterface $account); |
Chris@0 | 19 |
Chris@0 | 20 /** |
Chris@0 | 21 * Update the last access timestamp of the user. |
Chris@0 | 22 * |
Chris@0 | 23 * @param \Drupal\Core\Session\AccountInterface $account |
Chris@0 | 24 * The user object. |
Chris@0 | 25 * @param int $timestamp |
Chris@0 | 26 * The last access timestamp. |
Chris@0 | 27 */ |
Chris@0 | 28 public function updateLastAccessTimestamp(AccountInterface $account, $timestamp); |
Chris@0 | 29 |
Chris@0 | 30 /** |
Chris@0 | 31 * Delete role references. |
Chris@0 | 32 * |
Chris@0 | 33 * @param array $rids |
Chris@0 | 34 * The list of role IDs being deleted. The storage should |
Chris@0 | 35 * remove permission and user references to this role. |
Chris@0 | 36 */ |
Chris@0 | 37 public function deleteRoleReferences(array $rids); |
Chris@0 | 38 |
Chris@0 | 39 } |