Skip to content

Kirby 3.7.5

PageRules::create()

Validates if the page can be created

PageRules::create(Kirby\Cms\Page $page): bool

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

Parent class

Kirby\Cms\PageRules