You are here

public function GroupPermissionChecker::__construct in Group 8

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

Constructs a GroupPermissionChecker object.

Parameters

\Drupal\group\Access\ChainGroupPermissionCalculatorInterface $permission_calculator: The group permission calculator.

File

src/Access/GroupPermissionChecker.php, line 26

Class

GroupPermissionChecker
Calculates group permissions for an account.

Namespace

Drupal\group\Access

Code

public function __construct(ChainGroupPermissionCalculatorInterface $permission_calculator) {
  $this->groupPermissionCalculator = $permission_calculator;
}