Skip to content

Kirby 3.6.6

PageRules::duplicate()

Validates if the page can be duplicated

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

Parameters

Name Type Default
$page * Kirby\Cms\Page
$slug * string
$options array [ ]

Return type

bool

Exceptions

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

Parent class

Kirby\Cms\PageRules