You are here

public function DefaultTwigExtension::get_training_content in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 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 475

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_learning_path\TwigExtension

Code

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