constant SynchronizedGroupPermissionCalculator::OUTSIDER_CACHE_CONTEXTS in Group 2.0.x
Same name and namespace in other branches
- 8 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\AccessCode
const OUTSIDER_CACHE_CONTEXTS = [
'user.roles',
];