You are here

protected function ChainGroupPermissionCalculator::getPersistentMemberCacheContexts in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Access/ChainGroupPermissionCalculator.php \Drupal\group\Access\ChainGroupPermissionCalculator::getPersistentMemberCacheContexts()

Gets the cache contexts that always apply to the member permissions.

Return value

string[]

1 call to ChainGroupPermissionCalculator::getPersistentMemberCacheContexts()
ChainGroupPermissionCalculator::calculateMemberPermissions in src/Access/ChainGroupPermissionCalculator.php
Calculates the member group permissions for an account.

File

src/Access/ChainGroupPermissionCalculator.php, line 262

Class

ChainGroupPermissionCalculator
Collects group permissions for an account.

Namespace

Drupal\group\Access

Code

protected function getPersistentMemberCacheContexts() {
  return $this
    ->getPersistentCacheContexts('MEMBER_CACHE_CONTEXTS');
}