You are here

public function DefaultTwigExtension::getFunctions in Opigno training catalog 8

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

File

src/TwigExtension/DefaultTwigExtension.php, line 16

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_catalog\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('opigno_catalog_get_style', [
      $this,
      'get_row_style',
    ]),
    new \Twig_SimpleFunction('opigno_catalog_is_member', [
      $this,
      'is_member',
    ]),
    new \Twig_SimpleFunction('opigno_catalog_is_started', [
      $this,
      'is_started',
    ]),
    new \Twig_SimpleFunction('opigno_catalog_get_default_image', [
      $this,
      'get_default_image',
    ]),
  ];
}