You are here

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

Checks if a group (A) is the descendant of another group (B).

Parameters

int $a: The group whose descent status will be checked.

int $b: The group for which descent status will be checked against.

Return value

bool TRUE if group A is a descendant of group B.

1 method overrides GroupGraphStorageInterface::isDescendant()
SqlGroupGraphStorage::isDescendant in src/Graph/SqlGroupGraphStorage.php
Checks if a group (A) is the descendant of another group (B).

File

src/Graph/GroupGraphStorageInterface.php, line 122

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function isDescendant($a, $b);