function PermissionsHashGeneratorInterface::generate

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php \Drupal\Core\Session\PermissionsHashGeneratorInterface::generate()
  2. 10 core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php \Drupal\Core\Session\PermissionsHashGeneratorInterface::generate()
  3. 11.x 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\Session

Code

public function generate(AccountInterface $account);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.