You are here

public function SqlGroupGraphStorage::getDirectDescendants in Subgroup (Graph) 1.0.x

File

src/Graph/SqlGroupGraphStorage.php, line 505

Class

SqlGroupGraphStorage
SQL based storage of the group relationship graph.

Namespace

Drupal\ggroup\Graph

Code

public function getDirectDescendants($group_id) {
  $this
    ->loadMap($group_id);
  return isset($this->directDescendants[$group_id]) ? $this->directDescendants[$group_id] : [];
}