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 |