You are here

public function UserController::training in Opigno statistics 8

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

File

src/Controller/UserController.php, line 1608

Class

UserController
Class UserController.

Namespace

Drupal\opigno_statistics\Controller

Code

public function training(UserInterface $user, GroupInterface $group) {
  $content = [];
  $content[] = $this
    ->buildTrainingDetails($user, $group);
  $content['#attached']['library'][] = 'opigno_statistics/user';
  return $content;
}