You are here

public function DefaultTwigExtension::getFunctions in Opigno messaging 8

File

src/TwigExtension/DefaultTwigExtension.php, line 41

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_messaging\TwigExtension

Code

public function getFunctions() {
  return [
    new \Twig_SimpleFunction('get_unread_thread_count', [
      $this,
      'get_unread_thread_count',
    ]),
  ];
}