public function ChainGroupPermissionCalculator::calculateAnonymousPermissions in Group 2.0.x
Same name and namespace in other branches
- 8 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\AccessCode
public function calculateAnonymousPermissions() {
return $this
->doCacheableCalculation([
'group_permissions',
'anonymous',
], $this
->getPersistentAnonymousCacheContexts(), __FUNCTION__);
}