You are here

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

Relates the parent group and the child group.

Inferred relationships based on existing relationships to the parent group and the child group will also be created.

Parameters

int $parent_group_id: The ID of the parent group.

int $child_group_id: The ID of the child group.

Return value

int|false The ID of the graph edge relating the parent group to the child group or FALSE if the relationship could not be created.

1 method overrides GroupGraphStorageInterface::addEdge()
SqlGroupGraphStorage::addEdge in src/Graph/SqlGroupGraphStorage.php
Relates the parent group and the child group.

File

src/Graph/GroupGraphStorageInterface.php, line 34

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function addEdge($parent_group_id, $child_group_id);