You are here

protected function ChainGroupPermissionCalculator::getPersistentAnonymousCacheContexts in Group 2.0.x

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

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

Return value

string[]

1 call to ChainGroupPermissionCalculator::getPersistentAnonymousCacheContexts()
ChainGroupPermissionCalculator::calculateAnonymousPermissions in src/Access/ChainGroupPermissionCalculator.php
Calculates the anonymous group permissions.

File

src/Access/ChainGroupPermissionCalculator.php, line 244

Class

ChainGroupPermissionCalculator
Collects group permissions for an account.

Namespace

Drupal\group\Access

Code

protected function getPersistentAnonymousCacheContexts() {
  return $this
    ->getPersistentCacheContexts('ANONYMOUS_CACHE_CONTEXTS');
}