You are here

public function GroupPermissionCalculatorBase::calculateOutsiderPermissions in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Access/GroupPermissionCalculatorBase.php \Drupal\group\Access\GroupPermissionCalculatorBase::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

2 methods override GroupPermissionCalculatorBase::calculateOutsiderPermissions()
DefaultGroupPermissionCalculator::calculateOutsiderPermissions in src/Access/DefaultGroupPermissionCalculator.php
Calculates the outsider group permissions for an account.
SynchronizedGroupPermissionCalculator::calculateOutsiderPermissions in src/Access/SynchronizedGroupPermissionCalculator.php
Calculates the outsider group permissions for an account.

File

src/Access/GroupPermissionCalculatorBase.php, line 22

Class

GroupPermissionCalculatorBase
Base class for group permission calculators.

Namespace

Drupal\group\Access

Code

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