protected function LearningPathController::build_course_row in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Controller/LearningPathController.php \Drupal\opigno_learning_path\Controller\LearningPathController::build_course_row()
Returns course row.
File
- src/
Controller/ LearningPathController.php, line 89
Class
- LearningPathController
- Class LearningPathController.
Namespace
Drupal\opigno_learning_path\ControllerCode
protected function build_course_row($step) {
$result = $this
->build_step_score_cell($step);
$state = $this
->build_step_state_cell($step);
return [
$step['name'],
[
'class' => 'lp_step_details_result',
'data' => $result,
],
[
'class' => 'lp_step_details_state',
'data' => $state,
],
];
}