You are here

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

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

Parameters

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

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

Return value

bool TRUE if group A is an ancestor of group B.

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

File

src/Graph/GroupGraphStorageInterface.php, line 109

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function isAncestor($a, $b);