public function LearningPathManagerController::index in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Controller/LearningPathManagerController.php \Drupal\opigno_learning_path\Controller\LearningPathManagerController::index()
Root page for angular app.
File
- src/
Controller/ LearningPathManagerController.php, line 47
Class
- LearningPathManagerController
- Controller for all the actions of the Learning Path manager app.
Namespace
Drupal\opigno_learning_path\ControllerCode
public function index(Group $group, Request $request) {
$tempstore = \Drupal::service('user.private_tempstore')
->get('opigno_group_manager');
return [
'#theme' => 'opigno_learning_path_manager',
'#attached' => [
'library' => [
'opigno_group_manager/manage_app',
],
],
'#base_path' => $request
->getBasePath(),
'#base_href' => $request
->getPathInfo(),
'#learning_path_id' => $group
->id(),
'#user_has_info_card' => $tempstore
->get('hide_info_card') ? FALSE : TRUE,
];
}