Skip to content

Kirby 6.0.0

ModelGuards::for()

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

ModelGuards::for(Model $model): ModelGuards

Parameters

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

Return type

Kirby\Guards\ModelGuards

Parent class

Kirby\Guards\ModelGuards