You are here

public function PermissionsHashGeneratorInterface::generate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 24
Contains \Drupal\Core\Session\PermissionsHashGeneratorInterface.

Class

PermissionsHashGeneratorInterface
Defines the user permissions hash generator interface.

Namespace

Drupal\Core\Session

Code

public function generate(AccountInterface $account);