You are here

public function GroupHierarchyManager::__construct in Subgroup (Graph) 1.0.x

Constructs a new GroupHierarchyManager.

Parameters

\Drupal\ggroup\Graph\GroupGraphStorageInterface $group_graph_storage: The group graph storage service.

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

\Drupal\group\GroupMembershipLoader $membership_loader: The group membership loader.

File

src/GroupHierarchyManager.php, line 50

Class

GroupHierarchyManager
Manages the relationship between groups (as subgroups).

Namespace

Drupal\ggroup

Code

public function __construct(GroupGraphStorageInterface $group_graph_storage, EntityTypeManagerInterface $entity_type_manager, GroupMembershipLoader $membership_loader) {
  $this->groupGraphStorage = $group_graph_storage;
  $this->entityTypeManager = $entity_type_manager;
  $this->membershipLoader = $membership_loader;
}