$pageGuards->isAvailable()
Non-throwing counterpart of ::ensureAvailable()
$pageGuards->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\PageGuards
inherited from Kirby\Guards\ModelGuards