function opigno_learning_path_get_current_step in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 opigno_learning_path.module \opigno_learning_path_get_current_step()
Returns current step.
5 calls to opigno_learning_path_get_current_step()
- LearningPathContentController::getNextLink in src/
Controller/ LearningPathContentController.php - Returns next link.
- LearningPathValidator::stepsValidate in src/
LearningPathValidator.php - Redirect user if one of learning path steps aren't completed.
- opigno_learning_path_get_step_list_aside in ./
opigno_learning_path.module - Returns step list for page aside area.
- opigno_learning_path_get_step_list_top in ./
opigno_learning_path.module - Returns step list for page top area.
- opigno_learning_path_preprocess_region in ./
opigno_learning_path.module - Implements hook_preprocess_region().
File
- ./
opigno_learning_path.module, line 1028 - Contains opigno_learning_path.module.
Code
function opigno_learning_path_get_current_step() {
$steps = opigno_learning_path_get_routes_steps();
return isset($steps[\Drupal::routeMatch()
->getRouteName()]) ? $steps[\Drupal::routeMatch()
->getRouteName()] : NULL;
}