public function PermissionsHashGeneratorInterface::generate

public PermissionsHashGeneratorInterface::generate(AccountInterface $account)

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.

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);

© 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!PermissionsHashGeneratorInterface.php/function/PermissionsHashGeneratorInterface::generate/8.1.x