You are here

public function DefaultTwigExtension::get_unread_thread_count in Opigno messaging 8

Returns unread thread count.

File

src/TwigExtension/DefaultTwigExtension.php, line 67

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_messaging\TwigExtension

Code

public function get_unread_thread_count() {
  return \Drupal::service('private_message.service')
    ->getUnreadThreadCount();
}