You are here

abstract class GroupPermissionCalculatorBase in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Access/GroupPermissionCalculatorBase.php \Drupal\group\Access\GroupPermissionCalculatorBase

Base class for group permission calculators.

Hierarchy

Expanded class hierarchy of GroupPermissionCalculatorBase

File

src/Access/GroupPermissionCalculatorBase.php, line 10

Namespace

Drupal\group\Access
View source
abstract class GroupPermissionCalculatorBase implements GroupPermissionCalculatorInterface {

  /**
   * {@inheritdoc}
   */
  public function calculateAnonymousPermissions() {
    return new RefinableCalculatedGroupPermissions();
  }

  /**
   * {@inheritdoc}
   */
  public function calculateOutsiderPermissions(AccountInterface $account) {
    return new RefinableCalculatedGroupPermissions();
  }

  /**
   * {@inheritdoc}
   */
  public function calculateMemberPermissions(AccountInterface $account) {
    return new RefinableCalculatedGroupPermissions();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GroupPermissionCalculatorBase::calculateAnonymousPermissions public function Calculates the anonymous group permissions. Overrides GroupPermissionCalculatorInterface::calculateAnonymousPermissions 1
GroupPermissionCalculatorBase::calculateMemberPermissions public function Calculates the member group permissions for an account. Overrides GroupPermissionCalculatorInterface::calculateMemberPermissions 1
GroupPermissionCalculatorBase::calculateOutsiderPermissions public function Calculates the outsider group permissions for an account. Overrides GroupPermissionCalculatorInterface::calculateOutsiderPermissions 2
GroupPermissionCalculatorInterface::ANONYMOUS_CACHE_CONTEXTS constant The cache contexts that should always be present on anonymous permissions.
GroupPermissionCalculatorInterface::MEMBER_CACHE_CONTEXTS constant The cache contexts that should always be present on member permissions. 1
GroupPermissionCalculatorInterface::OUTSIDER_CACHE_CONTEXTS constant The cache contexts that should always be present on outsider permissions. 1