$siteGuards->ensureExecutable()
Runs every check for the given action, including the validators for its arguments. Actions with a dedicated ensureTo<Action>() method in the child class are handed over to it, all others fall back to ::ensureAvailable() and the validators.
$siteGuards->ensureExecutable(string $action, mixed ...$arguments): void
Parameters
| Name | Type | Default |
|---|---|---|
| $actionrequired | string |
no default value |
| ...$arguments | mixed |
no default value |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\AbilityExceptionorKirby\Exception\PermissionExceptionorKirby\Exception\Exception |
Parent class
Kirby\Guards\SiteGuards
inherited from Kirby\Guards\ModelGuards