You are here

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

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

File

src/Graph/GroupGraphStorageInterface.php, line 83

Class

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

Namespace

Drupal\ggroup\Graph

Code

public function isDirectAncestor($a, $b);