You are here

public function DefaultGroupPermissionCalculator::__construct in Group 2.0.x

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

Constructs a DefaultGroupPermissionCalculator object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\group\GroupMembershipLoaderInterface $membership_loader: The group membership loader service.

File

src/Access/DefaultGroupPermissionCalculator.php, line 43

Class

DefaultGroupPermissionCalculator
Calculates group permissions for an account.

Namespace

Drupal\group\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, GroupMembershipLoaderInterface $membership_loader) {
  $this->entityTypeManager = $entity_type_manager;
  $this->membershipLoader = $membership_loader;
}