You are here

public function LearningPathController::modulesIndex in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Controller/LearningPathController.php \Drupal\opigno_module\Controller\LearningPathController::modulesIndex()

Modules index.

1 string reference to 'LearningPathController::modulesIndex'
opigno_module.routing.yml in ./opigno_module.routing.yml
opigno_module.routing.yml

File

src/Controller/LearningPathController.php, line 392

Class

LearningPathController
Class LearningPathController.

Namespace

Drupal\opigno_module\Controller

Code

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',
  ];
}