class AccountPermissionsCacheContext

Defines the AccountPermissionsCacheContext service, for "per permission" caching.

Cache context ID: 'user.permissions'.

Hierarchy

File

core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php, line 14

Namespace

Drupal\Core\Cache\Context

Members

Name Modifiers Type Description
AccountPermissionsCacheContext::$permissionsHashGenerator protected property The permissions hash generator.
AccountPermissionsCacheContext::getCacheableMetadata public function Gets the cacheability metadata for the context. Overrides CacheContextInterface::getCacheableMetadata
AccountPermissionsCacheContext::getContext public function Returns the string representation of the cache context. Overrides CacheContextInterface::getContext
AccountPermissionsCacheContext::getLabel public static function Returns the label of the cache context. Overrides CacheContextInterface::getLabel
AccountPermissionsCacheContext::__construct public function Constructs a new UserCacheContext service. Overrides UserCacheContextBase::__construct
UserCacheContextBase::$user protected property The account object.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!Context!AccountPermissionsCacheContext.php/class/AccountPermissionsCacheContext/8.1.x