You are here

public function DefaultTwigExtension::getFunctions 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::getFunctions()

File

src/TwigExtension/DefaultTwigExtension.php, line 47

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_learning_path\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('is_group_member', [
      $this,
      'is_group_member',
    ]),
    new \Twig_SimpleFunction('get_join_group_link', [
      $this,
      'get_join_group_link',
    ]),
    new \Twig_SimpleFunction('get_start_link', [
      $this,
      'get_start_link',
    ]),
    new \Twig_SimpleFunction('get_progress', [
      $this,
      'get_progress',
    ]),
    new \Twig_SimpleFunction('get_training_content', [
      $this,
      'get_training_content',
    ]),
  ];
}