You are here

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

Gets the IDs of the subgroups of a given group.

Parameters

int $group_id: The group for which subgroups will be loaded.

Return value

int[] An array of subgroup IDs for the given group.

Overrides GroupHierarchyManagerInterface::getGroupSubgroupIds

1 call to GroupHierarchyManager::getGroupSubgroupIds()
GroupHierarchyManager::getGroupSubgroups in src/GroupHierarchyManager.php
Loads the subgroups of a given group.

File

src/GroupHierarchyManager.php, line 124

Class

GroupHierarchyManager
Manages the relationship between groups (as subgroups).

Namespace

Drupal\ggroup

Code

public function getGroupSubgroupIds($group_id) {
  return $this->groupGraphStorage
    ->getDescendants($group_id);
}