Generates and caches the permissions hash for a user.
Hierarchy
- class \Drupal\Core\Session\PermissionsHashGenerator implements PermissionsHashGeneratorInterface
File
- core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 13
Namespace
Drupal\Core\Session
Members
Name | Modifiers | Type | Description |
---|---|---|---|
PermissionsHashGenerator::$cache | protected | property | The cache backend interface to use for the persistent cache. |
PermissionsHashGenerator::$privateKey | protected | property | The private key service. |
PermissionsHashGenerator::$static | protected | property | The cache backend interface to use for the static cache. |
PermissionsHashGenerator::doGenerate | protected | function | Generates a hash that uniquely identifies the user's permissions. |
PermissionsHashGenerator::generate | public | function | Cached by role, invalidated whenever permissions change. Overrides PermissionsHashGeneratorInterface::generate |
PermissionsHashGenerator::hash | protected | function | Hashes the given string. |
PermissionsHashGenerator::__construct | public | function | Constructs a PermissionsHashGenerator object. |
Please login to continue.