protected function LearningPathAchievementController::getComplitedByStep in Opigno Learning path 3.x
Completed if module is attempted.
3 calls to LearningPathAchievementController::getComplitedByStep()
- LearningPathAchievementController::build_course_steps in src/
Controller/ LearningPathAchievementController.php - Returns course steps renderable array.
- LearningPathAchievementController::trainingStepCourseBuild in src/
Controller/ LearningPathAchievementController.php - If step is course prepares a render array of content.
- LearningPathAchievementController::trainingStepModuleBuild in src/
Controller/ LearningPathAchievementController.php - If step is module prepares a render array of content.
File
- src/
Controller/ LearningPathAchievementController.php, line 1336
Class
- LearningPathAchievementController
- Class LearningPathAchievementController.
Namespace
Drupal\opigno_learning_path\ControllerCode
protected function getComplitedByStep($step) {
return isset($step['attempted']) && $step['completed on'] > 0 ? $step['completed on'] : FALSE;
}