Skip to content

Kirby 6.0.0

$languageGuards->isAvailable()

Non-throwing counterpart of ::ensureAvailable()

$languageGuards->isAvailable(string $action, bool $default = false): bool

Parameters

Name Type Default Description
$actionrequired string no default value
$default bool false Used if the action has no permission rule

Return type

bool

Parent class

Kirby\Guards\LanguageGuards inherited from Kirby\Guards\ModelGuards