public function UserController::training in Opigno statistics 8
Same name and namespace in other branches
- 3.x src/Controller/UserController.php \Drupal\opigno_statistics\Controller\UserController::training()
Builds render array for a user training statistics page.
1 string reference to 'UserController::training'
File
- src/
Controller/ UserController.php, line 1608
Class
- UserController
- Class UserController.
Namespace
Drupal\opigno_statistics\ControllerCode
public function training(UserInterface $user, GroupInterface $group) {
$content = [];
$content[] = $this
->buildTrainingDetails($user, $group);
$content['#attached']['library'][] = 'opigno_statistics/user';
return $content;
}