Skip to content

Kirby 6.0.0

$modelGuards->isExecutable()

Non-throwing counterpart of ::ensureExecutable(). As the validators are part of the action, this catches every exception the layers can throw, not just the ability and permission exceptions.

$modelGuards->isExecutable(string $action, mixed ...$arguments): bool

Parameters

Name Type Default
$actionrequired string no default value
...$arguments mixed no default value

Return type

bool

Parent class

Kirby\Guards\ModelGuards