Skip to content

Kirby 6.0.0

$userValidators->validateAvatarType()

Validates that the extension of the avatar file belongs to an image type

$userValidators->validateAvatarType(string $extension): void

Parameters

Name Type Default
$extensionrequired string no default value

Parent class

Kirby\Guards\UserValidators