public function ChainGroupPermissionCalculator::calculateOutsiderPermissions in Group 2.0.x
Same name and namespace in other branches
- 8 src/Access/ChainGroupPermissionCalculator.php \Drupal\group\Access\ChainGroupPermissionCalculator::calculateOutsiderPermissions()
Calculates the outsider group permissions for an account.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account for which to calculate the outsider permissions.
Return value
\Drupal\group\Access\CalculatedGroupPermissionsInterface An object representing the outsider group permissions.
Overrides GroupPermissionCalculatorInterface::calculateOutsiderPermissions
File
- src/
Access/ ChainGroupPermissionCalculator.php, line 189
Class
- ChainGroupPermissionCalculator
- Collects group permissions for an account.
Namespace
Drupal\group\AccessCode
public function calculateOutsiderPermissions(AccountInterface $account) {
return $this
->doCacheableCalculation([
'group_permissions',
'outsider',
], $this
->getPersistentOutsiderCacheContexts(), __FUNCTION__, [
$account,
]);
}