You are here

public function SynchronizedGroupPermissionCalculator::__construct in Group 8

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

Constructs a SynchronizedGroupPermissionCalculator object.

Parameters

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

\Drupal\group\GroupRoleSynchronizerInterface $group_role_synchronizer: The group role synchronizer service.

File

src/Access/SynchronizedGroupPermissionCalculator.php, line 42

Class

SynchronizedGroupPermissionCalculator
Calculates group permissions for an account.

Namespace

Drupal\group\Access

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, GroupRoleSynchronizerInterface $group_role_synchronizer) {
  $this->entityTypeManager = $entity_type_manager;
  $this->groupRoleSynchronizer = $group_role_synchronizer;
}