Skip to content

Kirby 5.0.4

PageRules::duplicate()

Validates if the page can be duplicated

PageRules::duplicate(Kirby\Cms\Page $page, string $slug, array $options = [ ]): void

Parameters

Name Type Default
$pagerequired Kirby\Cms\Page no default value
$slugrequired string no default value
$options array [ ]

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to duplicate the page

Parent class

Kirby\Cms\PageRules