You are here

protected function LearningPathAchievementController::build_training_summary in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/Controller/LearningPathAchievementController.php \Drupal\opigno_learning_path\Controller\LearningPathAchievementController::build_training_summary()

Returns training summary.

Parameters

\Drupal\group\Entity\GroupInterface $group: Group.

Return value

array Training summary.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

1 call to LearningPathAchievementController::build_training_summary()
LearningPathAchievementController::build_training in src/Controller/LearningPathAchievementController.php
Returns training array.

File

src/Controller/LearningPathAchievementController.php, line 943

Class

LearningPathAchievementController
Class LearningPathAchievementController.

Namespace

Drupal\opigno_learning_path\Controller

Code

protected function build_training_summary(GroupInterface $group) {
  $gid = $group
    ->id();
  $user = $this
    ->currentUser();
  $uid = $user
    ->id();
  return $this->progress
    ->getProgressAjaxContainer($gid, $uid, '', 'achievements-page');
}