You are here

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

Get all relations between groups ordered by the number of hops.

Return value

array An array containing all relations between groups with the parent group as key and the child group as value.

1 method overrides GroupGraphStorageInterface::getGraph()
SqlGroupGraphStorage::getGraph in src/Graph/SqlGroupGraphStorage.php
Get all relations between groups ordered by the number of hops.

File

src/Graph/GroupGraphStorageInterface.php, line 17

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function getGraph($group_id);