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