protected function LearningPathController::build_step_state_label in Opigno Learning path 3.x
Returns step state cell.
1 call to LearningPathController::build_step_state_label()
- LearningPathController::trainingContentSteps in src/
Controller/ LearningPathController.php - Training content steps.
File
- src/
Controller/ LearningPathController.php, line 109
Class
- LearningPathController
- Class LearningPathController.
Namespace
Drupal\opigno_learning_path\ControllerCode
protected function build_step_state_label($step) {
$user = $this
->currentUser();
$uid = $user
->id();
$status = opigno_learning_path_get_step_status($step, $uid, TRUE);
return [
'class' => $status,
];
}