public function ChainGroupPermissionCalculatorInterface::calculatePermissions in Group 8
Same name and namespace in other branches
- 2.0.x src/Access/ChainGroupPermissionCalculatorInterface.php \Drupal\group\Access\ChainGroupPermissionCalculatorInterface::calculatePermissions()
Calculates the full group permissions for an account.
This could either include anonymous permissions or both outsider and member permissions, depending on the account's anonymous status.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user account for which to retrieve the permissions.
Return value
\Drupal\group\Access\CalculatedGroupPermissionsInterface An object representing the full group permissions.
1 method overrides ChainGroupPermissionCalculatorInterface::calculatePermissions()
- ChainGroupPermissionCalculator::calculatePermissions in src/
Access/ ChainGroupPermissionCalculator.php - Calculates the full group permissions for an account.
File
- src/
Access/ ChainGroupPermissionCalculatorInterface.php, line 58
Class
- ChainGroupPermissionCalculatorInterface
- Runs the added calculators one by one until the full permissions are built.
Namespace
Drupal\group\AccessCode
public function calculatePermissions(AccountInterface $account);