You are here

public function TFTController::listGroup in Taxonomy File Tree 8

Same name and namespace in other branches
  1. 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'
tft.routing.yml in ./tft.routing.yml
tft.routing.yml

File

src/Controller/TFTController.php, line 587

Class

TFTController
Class TFTController.

Namespace

Drupal\tft\Controller

Code

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());
}