Kanboard Documentation

Avatar Providers

Registration

$this->avatarManager->register(new CustomAvatarProvider());

Interface

The provider must implement the interface Kanboard\Core\User\Avatar\AvatarProviderInterface:

MethodDescription
render(array $user, $size)Renders HTML
isActive(array $user)Returns a boolean indicating if the provider can render something

The $user argument is an array that contains the following keys:

[
    'id' => 123,
    'username' => 'admin',
    'name' => 'Administrator',
    'email' => 'me@localhost',
]