You are here

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

Gets all descendant child groups of the given parent group.

Parameters

int $group_id: The parent group ID.

Return value

int[] An array of descendant child group IDs.

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

File

src/Graph/GroupGraphStorageInterface.php, line 59

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function getDescendants($group_id);