public function LearningPathController::trainingContentMain in Opigno Learning path 3.x
Training content main block.
1 call to LearningPathController::trainingContentMain()
- LearningPathController::trainingContent in src/
Controller/ LearningPathController.php - Training content.
File
- src/
Controller/ LearningPathController.php, line 434
Class
- LearningPathController
- Class LearningPathController.
Namespace
Drupal\opigno_learning_path\ControllerCode
public function trainingContentMain(&$content, $steps) {
$content['tabs'] = [
'#type' => 'container',
'#attributes' => [
'class' => [
'lp_tabs',
'nav',
'mb-4',
],
],
];
$content['tabs']['training'] = [
'#markup' => '<a class="lp_tabs_link active" href="#training-content">' . $this
->t('Training Content') . '</a>',
];
$content['tab_content'] = [
'#type' => 'container',
'#attributes' => [
'class' => [
'tab-content',
],
],
];
$content['tab_content']['training'] = [
'#theme' => 'opigno_learning_path_training_content_steps',
'steps' => $steps,
];
}