You are here

public function ChainGroupPermissionCalculator::calculateAnonymousPermissions in Group 8

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

Calculates the anonymous group permissions.

Return value

\Drupal\group\Access\CalculatedGroupPermissionsInterface An object representing the anonymous group permissions.

Overrides GroupPermissionCalculatorInterface::calculateAnonymousPermissions

1 call to ChainGroupPermissionCalculator::calculateAnonymousPermissions()
ChainGroupPermissionCalculator::calculatePermissions in src/Access/ChainGroupPermissionCalculator.php
Calculates the full group permissions for an account.

File

src/Access/ChainGroupPermissionCalculator.php, line 178

Class

ChainGroupPermissionCalculator
Collects group permissions for an account.

Namespace

Drupal\group\Access

Code

public function calculateAnonymousPermissions() {
  return $this
    ->doCacheableCalculation([
    'group_permissions',
    'anonymous',
  ], $this
    ->getPersistentAnonymousCacheContexts(), __FUNCTION__);
}