function PermissionsHashGenerator::getCacheableMetadata
Same name in other branches
- 11.x core/lib/Drupal/Core/Session/PermissionsHashGenerator.php \Drupal\Core\Session\PermissionsHashGenerator::getCacheableMetadata()
File
-
core/
lib/ Drupal/ Core/ Session/ PermissionsHashGenerator.php, line 125
Class
- PermissionsHashGenerator
- Generates and caches the permissions hash for a user.
Namespace
Drupal\Core\SessionCode
public function getCacheableMetadata(AccountInterface $account) : CacheableMetadata {
return CacheableMetadata::createFromObject($this->processor
->processAccessPolicies($account));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.