public function PermissionsHashGeneratorInterface::generate in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php \Drupal\Core\Session\PermissionsHashGeneratorInterface::generate()
Generates a hash that uniquely identifies a user's permissions.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account for which to get the permissions hash.
Return value
string A permissions hash.
1 method overrides PermissionsHashGeneratorInterface::generate()
- PermissionsHashGenerator::generate in core/
lib/ Drupal/ Core/ Session/ PermissionsHashGenerator.php - Cached by role, invalidated whenever permissions change.
File
- core/
lib/ Drupal/ Core/ Session/ PermissionsHashGeneratorInterface.php, line 19
Class
- PermissionsHashGeneratorInterface
- Defines the user permissions hash generator interface.
Namespace
Drupal\Core\SessionCode
public function generate(AccountInterface $account);