Skip to content

Kirby 6.0.0

$pageGuards->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.

$pageGuards->ensureExecutable(string $action, mixed ...$arguments): void

Parameters

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

Exceptions

Parent class

Kirby\Guards\PageGuards inherited from Kirby\Guards\ModelGuards