function PermissionsHashGeneratorInterface::getCacheableMetadata

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php \Drupal\Core\Session\PermissionsHashGeneratorInterface::getCacheableMetadata()

Gets the cacheability metadata for the generated hash.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user account for which to get the permissions hash.

Return value

\Drupal\Core\Cache\CacheableMetadata A cacheable metadata object.

File

core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php, line 32

Class

PermissionsHashGeneratorInterface
Defines the user permissions hash generator interface.

Namespace

Drupal\Core\Session

Code

public function getCacheableMetadata(AccountInterface $account) : CacheableMetadata;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.