Skip to content

Kirby 6.0.0

UserGuards::for()

Returns the guards for the model, bound to the currently authenticated user.

UserGuards::for(Model $model): UserGuards

Parameters

Name Type Default
$modelrequired Kirby\Cms\Model no default value

Return type

Kirby\Guards\UserGuards

Parent class

Kirby\Guards\UserGuards inherited from Kirby\Guards\ModelGuards