public PermissionsHashGenerator::generate(AccountInterface $account)
Cached by role, invalidated whenever permissions change.
Overrides PermissionsHashGeneratorInterface::generate
File
core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 57
Class
PermissionsHashGenerator Generates and caches the permissions hash for a user.
Namespace
Drupal\Core\Session
Code
public function generate(AccountInterface $account) {
// User 1 is the super user, and can always access all permis