You are here

function opigno_learning_path_started in Opigno Learning path 3.x

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

2 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.

File

./opigno_learning_path.module, line 3617
Contains opigno_learning_path.module.

Code

function opigno_learning_path_started(Group $group, AccountProxyInterface $user) {
  return LPResult::getCurrentLPAttempt($group, $user);
}