protected function StepsBlock::getStepTraining in Opigno Learning path 3.x
If the module has a course as a parent object just return it.
1 call to StepsBlock::getStepTraining()
- StepsBlock::getTrainingAndCourse in src/
Plugin/ Block/ StepsBlock.php - Loading a training/course and module entities by step array.
File
- src/
Plugin/ Block/ StepsBlock.php, line 315
Class
- StepsBlock
- Provides a 'article' block.
Namespace
Drupal\opigno_learning_path\Plugin\BlockCode
protected function getStepTraining(array $elements) {
return $elements["parent"] ?? FALSE;
}