$page->duplicate()
Duplicates the page with the given slug and optionally copies all files
$page->duplicate(string $slug = null, array $options = [ ]): Kirby\Cms\Page
Parameters
Name | Type | Default |
---|---|---|
$slug | string |
null |
$options | array |
[ ] |