You are here

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

Checks if step is module.

1 call to LearningPathAchievementController::isModule()
LearningPathAchievementController::build_lp_steps in src/Controller/LearningPathAchievementController.php
Returns LP steps.

File

src/Controller/LearningPathAchievementController.php, line 1322

Class

LearningPathAchievementController
Class LearningPathAchievementController.

Namespace

Drupal\opigno_learning_path\Controller

Code

protected function isModule($step) : bool {
  return $step['typology'] == 'Module';
}