Skip to content

Kirby 6.0.0

$userBlueprint->optionForUser()

Return the option settings depending on the user role

$userBlueprint->optionForUser(User $user, string $action): bool|null

Parameters

Name Type Default
$userrequired Kirby\Cms\User no default value
$actionrequired string no default value

Return types

boolornull

Parent class

Kirby\Blueprint\UserBlueprint inherited from Kirby\Blueprint\Blueprint