PageRules::create()
Validates if the page can be created
PageRules::create(Kirby\Cms\Page $page): void
Parameters
Name | Type | Default |
---|---|---|
$pagerequired | Kirby\Cms\Page |
no default value |
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 |