You are here

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

Checks if a group (A) is the direct 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::isDirectDescendant()
SqlGroupGraphStorage::isDirectDescendant in src/Graph/SqlGroupGraphStorage.php
Checks if a group (A) is the direct descendant of another group (B).

File

src/Graph/GroupGraphStorageInterface.php, line 96

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function isDirectDescendant($a, $b);