public function LearningPathController::modulesIndex in Opigno module 8
Same name and namespace in other branches
- 3.x src/Controller/LearningPathController.php \Drupal\opigno_module\Controller\LearningPathController::modulesIndex()
Modules index.
1 string reference to 'LearningPathController::modulesIndex'
File
- src/
Controller/ LearningPathController.php, line 392
Class
- LearningPathController
- Class LearningPathController.
Namespace
Drupal\opigno_module\ControllerCode
public function modulesIndex($opigno_module, Request $request) {
return [
'#theme' => 'opigno_learning_path_modules',
'#attached' => [
'library' => [
'opigno_group_manager/manage_app',
],
],
'#base_path' => $request
->getBasePath(),
'#base_href' => $request
->getPathInfo(),
'#learning_path_id' => $opigno_module
->id(),
'#module_context' => 'true',
];
}