You are here

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

Gets the IDs of the supergroups of a given group.

Parameters

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

Return value

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

Overrides GroupHierarchyManagerInterface::getGroupSupergroupIds

1 call to GroupHierarchyManager::getGroupSupergroupIds()
GroupHierarchyManager::getGroupSupergroups in src/GroupHierarchyManager.php
Loads the supergroups of a given group.

File

src/GroupHierarchyManager.php, line 139

Class

GroupHierarchyManager
Manages the relationship between groups (as subgroups).

Namespace

Drupal\ggroup

Code

public function getGroupSupergroupIds($group_id) {
  return $this->groupGraphStorage
    ->getAncestors($group_id);
}