function opigno_learning_path_started in Opigno Learning path 8
Same name and namespace in other branches
- 3.x opigno_learning_path.module \opigno_learning_path_started()
Function to detect if user already started Learning path.
Parameters
\Drupal\group\Entity\Group $group: Group.
\Drupal\Core\Session\AccountProxyInterface $user: User.
Return value
mixed|bool Current result attempt if it's exist or FALSE if not.
3 calls to opigno_learning_path_started()
- DefaultTwigExtension::get_start_link in src/
TwigExtension/ DefaultTwigExtension.php - Returns group start link.
- LearningPathStepsController::start in src/
Controller/ LearningPathStepsController.php - Start the learning path.
- Progress::getProgressBuildGroupPage in src/
Progress.php - Get get progress for group page.
File
- ./
opigno_learning_path.module, line 3721 - Contains opigno_learning_path.module.
Code
function opigno_learning_path_started(Group $group, AccountProxyInterface $user) {
return LPResult::getCurrentLPAttempt($group, $user);
}