You are here

constant DefaultGroupPermissionCalculator::MEMBER_CACHE_CONTEXTS in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/DefaultGroupPermissionCalculator.php \Drupal\group\Access\DefaultGroupPermissionCalculator::MEMBER_CACHE_CONTEXTS

The member roles depend on which memberships you have, for which we do not currently have a dedicated cache context as it has a very high granularity. We therefore cache the calculated permissions per user.

Overrides GroupPermissionCalculatorInterface::MEMBER_CACHE_CONTEXTS

File

src/Access/DefaultGroupPermissionCalculator.php, line 19

Class

DefaultGroupPermissionCalculator
Calculates group permissions for an account.

Namespace

Drupal\group\Access

Code

const MEMBER_CACHE_CONTEXTS = [
  'user',
];