Skip to content

Kirby 6.0.0

$fileBlueprint->optionForUser()

Return the option settings depending on the user role

$fileBlueprint->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\FileBlueprint inherited from Kirby\Blueprint\Blueprint