function PermissionsHashGeneratorInterface::getCacheableMetadata

Same name in other branches
  1. 10 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.

1 method overrides PermissionsHashGeneratorInterface::getCacheableMetadata()
PermissionsHashGenerator::getCacheableMetadata in core/lib/Drupal/Core/Session/PermissionsHashGenerator.php

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.