function PermissionsHashGenerator::doGenerate
Generates a hash that uniquely identifies the user's permissions.
Parameters
string[] $roles: The user's roles.
Return value
string The permissions hash.
Deprecated
in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement.
See also
https://www.drupal.org/node/3435842
File
- 
              core/lib/ Drupal/ Core/ Session/ PermissionsHashGenerator.php, line 117 
Class
- PermissionsHashGenerator
- Generates and caches the permissions hash for a user.
Namespace
Drupal\Core\SessionCode
protected function doGenerate(array $roles) {
  @trigger_error(__METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3435842', E_USER_DEPRECATED);
  return '';
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
