You are here

public function GroupGraphStorageInterface::getAncestors in Subgroup (Graph) 1.0.x

Gets all ancestor parent groups of the given child group.

Parameters

int $group_id: The child group ID.

Return value

int[] An array of ancestor parent group IDs.

1 method overrides GroupGraphStorageInterface::getAncestors()
SqlGroupGraphStorage::getAncestors in src/Graph/SqlGroupGraphStorage.php
Gets all ancestor parent groups of the given child group.

File

src/Graph/GroupGraphStorageInterface.php, line 70

Class

GroupGraphStorageInterface
An interface for defining the storage of group relationships as a graph.

Namespace

Drupal\ggroup\Graph

Code

public function getAncestors($group_id);