You are here

public function DefaultTwigExtension::get_training_content in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x src/TwigExtension/DefaultTwigExtension.php \Drupal\opigno_learning_path\TwigExtension\DefaultTwigExtension::get_training_content()

Returns training content.

Return value

mixed|null Training content.

File

src/TwigExtension/DefaultTwigExtension.php, line 349

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_learning_path\TwigExtension

Code

public function get_training_content() {
  $controller = new LearningPathController();
  $content = $controller
    ->trainingContent();
  return render($content);
}