You are here

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

File

src/TwigExtension/DefaultTwigExtension.php, line 55

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_learning_path\TwigExtension

Code

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