Skip to content

Kirby 5.6.4

PageRules::creatable()

Validates if the page can be created before its content has been added

PageRules::creatable(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

Parent class

Kirby\Cms\PageRules