DefaultAvatarProvider

class \TYPO3\CMS\Backend\Backend\Avatar\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.

Attributes

#[AsAvatarProvider]
'defaultAvatarProvider'

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 $backendUser, int $size) : Image|null

Parameters

$backendUser : array

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