class PermissionsHashGenerator

Generates and caches the permissions hash for a user.

Hierarchy

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.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!PermissionsHashGenerator.php/class/PermissionsHashGenerator/8.1.x