PageRules::create()
Validates if the page can be created
Parameters
Name | Type | Default |
---|---|---|
$page * | Kirby\Cms\Page |
– |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\DuplicateException |
If the same page or a draft already exists |
Kirby\Exception\InvalidArgumentException |
If the slug is invalid |
Kirby\Exception\PermissionException |
If the user is not allowed to create this page |