Skip to content

Kirby 4.9.6

$user->replaceAvatar()

Replaces the existing avatar for the user

$user->replaceAvatar(string $source, string $extension, bool $move = false): Kirby\Cms\User

Parameters

Name Type Default
$source * string –
$extension * string –
$move bool false

Return type

Kirby\Cms\User

This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\User