public function TFTController::listGroup in Taxonomy File Tree 8
Same name and namespace in other branches
- 3.x src/Controller/TFTController.php \Drupal\tft\Controller\TFTController::listGroup()
Returns group list.
Parameters
\Drupal\group\Entity\GroupInterface $group: Group.
Return value
array Render array.
1 string reference to 'TFTController::listGroup'
File
- src/
Controller/ TFTController.php, line 587
Class
- TFTController
- Class TFTController.
Namespace
Drupal\tft\ControllerCode
public function listGroup(GroupInterface $group) {
$tid = _tft_get_group_tid($group
->id());
if (!$tid) {
return [
'#markup' => $this
->t("No term was found for this group ! Please contact your system administrator."),
];
}
return $this
->tft($tid, $group
->id());
}