public static function LPManagedContent::loadByLearningPathId in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/Entity/LPManagedContent.php \Drupal\opigno_learning_path\Entity\LPManagedContent::loadByLearningPathId()
Load the contents linked to a specific learning path.
3 calls to LPManagedContent::loadByLearningPathId()
- LearningPathValidator::userHasPassed in src/
LearningPathValidator.php - Check if the user has passed all the conditions of a learning path.
- LPManagedContent::getFirstStep in src/
Entity/ LPManagedContent.php - Returns first step.
- LPResult::learningPathUserProgress in src/
Entity/ LPResult.php - Returns LP user progress.
File
- src/
Entity/ LPManagedContent.php, line 317
Class
- LPManagedContent
- Defines the Learning Path Content entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public static function loadByLearningPathId($learning_path_id) {
try {
return self::loadByProperties([
'learning_path_id' => $learning_path_id,
]);
} catch (InvalidPluginDefinitionException $e) {
return [];
}
}