You are here

protected function LearningPathController::build_course_row in Opigno Learning path 3.x

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

Returns course row.

File

src/Controller/LearningPathController.php, line 122

Class

LearningPathController
Class LearningPathController.

Namespace

Drupal\opigno_learning_path\Controller

Code

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