Skip to content

Kirby 6.0.0

$siteValidators->may()

Non-throwing counterpart of ::ensure(). The validators throw more specific exception classes than the other layers, so this catches every Kirby exception.

$siteValidators->may(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\SiteValidators inherited from Kirby\Guards\ModelValidators