public function DefaultGroupPermissionCalculator::__construct in Group 8
Same name and namespace in other branches
- 2.0.x 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\AccessCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, GroupMembershipLoaderInterface $membership_loader) {
$this->entityTypeManager = $entity_type_manager;
$this->membershipLoader = $membership_loader;
}