You are here

protected function KanbanEntry::getUserPictureUrl in Content Planner 8

Gets the URL of the user picture.

Parameters

int $uid: The user id.

Return value

bool|string Returns the user picture url if any, FALSE otherwise.

1 call to KanbanEntry::getUserPictureUrl()
KanbanEntry::build in modules/content_kanban/src/Component/KanbanEntry.php
Builds the Kanban Entry output.

File

modules/content_kanban/src/Component/KanbanEntry.php, line 124

Class

KanbanEntry
Class KanbanEntry.

Namespace

Drupal\content_kanban\Component

Code

protected function getUserPictureUrl($uid) {

  // If show user thumb is active.
  if ($this->config
    ->get('show_user_thumb') && isset($this->entity->{$uid})) {
    return $this
      ->getUserPictureFromCache($this->entity->{$uid}, 'content_kanban_user_thumb');
  }
  return FALSE;
}