PermissionsHashGeneratorInterface.php 470 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\Session;
  3. /**
  4. * Defines the user permissions hash generator interface.
  5. */
  6. interface PermissionsHashGeneratorInterface {
  7. /**
  8. * Generates a hash that uniquely identifies a user's permissions.
  9. *
  10. * @param \Drupal\Core\Session\AccountInterface $account
  11. * The user account for which to get the permissions hash.
  12. *
  13. * @return string
  14. * A permissions hash.
  15. */
  16. public function generate(AccountInterface $account);
  17. }