protected function LearningPathAchievementController::currentUser in Opigno Learning path 3.x
Returns the current user.
Return value
\Drupal\Core\Session\AccountInterface The current user.
Overrides ControllerBase::currentUser
7 calls to LearningPathAchievementController::currentUser()
- LearningPathAchievementController::build_course_steps in src/
Controller/ LearningPathAchievementController.php - Returns course steps renderable array.
- LearningPathAchievementController::build_lp_steps in src/
Controller/ LearningPathAchievementController.php - Returns LP steps.
- LearningPathAchievementController::build_module_panel in src/
Controller/ LearningPathAchievementController.php - Returns module panel renderable array.
- LearningPathAchievementController::build_page in src/
Controller/ LearningPathAchievementController.php - Returns training page array.
- LearningPathAchievementController::build_training_timeline in src/
Controller/ LearningPathAchievementController.php - Returns training timeline.
File
- src/
Controller/ LearningPathAchievementController.php, line 776
Class
- LearningPathAchievementController
- Class LearningPathAchievementController.
Namespace
Drupal\opigno_learning_path\ControllerCode
protected function currentUser(AccountInterface $account = NULL) {
if ($account) {
return $account;
}
return parent::currentUser();
}