You are here

protected function LearningPathAchievementController::build_training_summary in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 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 917

Class

LearningPathAchievementController
Class LearningPathAchievementController.

Namespace

Drupal\opigno_learning_path\Controller

Code

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