public function GroupHierarchyManagerInterface::groupHasSubgroup in Subgroup (Graph) 1.0.x
Checks if a group has a subgroup anywhere in its descendents.
Parameters
\Drupal\group\Entity\GroupInterface $group: The parent group whose subgroups will be checked.
\Drupal\group\Entity\GroupInterface $subgroup: The subgroup that will be searched for within the parent group's subgroups.
Return value
bool TRUE if the given group has the given subgroup, or FALSE if not.
1 method overrides GroupHierarchyManagerInterface::groupHasSubgroup()
- GroupHierarchyManager::groupHasSubgroup in src/
GroupHierarchyManager.php - Checks if a group has a subgroup anywhere in its descendents.
File
- src/
GroupHierarchyManagerInterface.php, line 41
Class
- GroupHierarchyManagerInterface
- An interface for the group hierarchy manager.
Namespace
Drupal\ggroupCode
public function groupHasSubgroup(GroupInterface $group, GroupInterface $subgroup);