DefaultAvatarProvider implements AvatarProviderInterface

Avatar Provider used for rendering avatars based on local files (based on FAL), stored in the be_users.avatar relation field with sys_file_reference.

Table of Contents

Interfaces

AvatarProviderInterface
Contract for avatar providers that ensure how an avatar should be rendered for a given Backend User

Methods

getImage()  : Image|null
Return an Image object for rendering the avatar, based on a FAL-based file
getAvatarFileUid()  : int
Get the sys_file UID of the avatar of the given backend user ID

Methods

getImage()

Return an Image object for rendering the avatar, based on a FAL-based file

public getImage(array<string|int, mixed> $backendUser, int $size) : Image|null
Parameters
$backendUser : array<string|int, mixed>

be_users record

$size : int
Return values
Image|null

getAvatarFileUid()

Get the sys_file UID of the avatar of the given backend user ID

protected getAvatarFileUid(int $backendUserId) : int
Parameters
$backendUserId : int

the UID of the be_users record

Return values
int

the sys_file UID or 0 if none found


        
On this page

Search results