You are here

public static function drupalchatController::drupalchat_return_pic_url in DrupalChat 8

2 calls to drupalchatController::drupalchat_return_pic_url()
drupalchatController::_drupalchat_get_user_details in src/Controller/drupalchatController.php
drupalchat_page_attachments in ./drupalchat.module

File

src/Controller/drupalchatController.php, line 723
Contains Drupal\drupalchat\Controller\drupalchatController

Class

drupalchatController

Namespace

Drupal\drupalchat\Controller

Code

public static function drupalchat_return_pic_url($uid = null) {
  $user = \Drupal::currentUser();
  if (isset($uid)) {
    $u = \Drupal\user\Entity\User::load($uid);
  }
  else {
    $u = \Drupal\user\Entity\User::load(\Drupal::currentUser()
      ->id());
  }
  return drupalchatController::drupalchat_return_pic_url_any_user($u);
}