Skip to content

Kirby 3.5.7.1

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