Skip to content

Kirby 6.0.0

$languageAbilities->ensure()

Runs the ability check for the given action. Actions with a dedicated ensureTo<Action>() method are handed over to it, all others pass

$languageAbilities->ensure(string $action): void

Parameters

Name Type Default
$actionrequired string no default value

Exceptions

Parent class

Kirby\Guards\LanguageAbilities inherited from Kirby\Guards\ModelAbilities