PermissionsHashGeneratorInterface.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\Core\SessionFile
core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.phpView source
<?php
namespace Drupal\Core\Session;
/**
* Defines the user permissions hash generator interface.
*/
interface PermissionsHashGeneratorInterface {
/**
* Generates a hash that uniquely identifies a user's permissions.
*
* @param \Drupal\Core\Session\AccountInterface $account
* The user account for which to get the permissions hash.
*
* @return string
* A permissions hash.
*/
public function generate(AccountInterface $account);
}
Interfaces
Name | Description |
---|---|
PermissionsHashGeneratorInterface | Defines the user permissions hash generator interface. |