You are here

constant SynchronizedGroupPermissionCalculator::OUTSIDER_CACHE_CONTEXTS in Group 8

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

The synchronized roles depend on which user roles you have, so we need to vary the calculated permissions by the user.roles cache context.

Overrides GroupPermissionCalculatorInterface::OUTSIDER_CACHE_CONTEXTS

File

src/Access/SynchronizedGroupPermissionCalculator.php, line 18

Class

SynchronizedGroupPermissionCalculator
Calculates group permissions for an account.

Namespace

Drupal\group\Access

Code

const OUTSIDER_CACHE_CONTEXTS = [
  'user.roles',
];