You are here

public function GroupPermissionCalculatorBase::calculateMemberPermissions in Group 8

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

Calculates the member group permissions for an account.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user account for which to calculate the member permissions.

Return value

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

Overrides GroupPermissionCalculatorInterface::calculateMemberPermissions

1 method overrides GroupPermissionCalculatorBase::calculateMemberPermissions()
DefaultGroupPermissionCalculator::calculateMemberPermissions in src/Access/DefaultGroupPermissionCalculator.php
Calculates the member group permissions for an account.

File

src/Access/GroupPermissionCalculatorBase.php, line 29

Class

GroupPermissionCalculatorBase
Base class for group permission calculators.

Namespace

Drupal\group\Access

Code

public function calculateMemberPermissions(AccountInterface $account) {
  return new RefinableCalculatedGroupPermissions();
}