$pageactions->duplicate()
Duplicates the page with the given slug and optionally copies all files
$pageactions->duplicate(?string $slug = null, array $options = [ ]): Kirby\Cms\PageActions
Parameters
Name | Type | Default |
---|---|---|
$slug | string |null |
null |
$options | array |
[ ] |
Return type
Kirby\Cms\PageActions
This method does not modify the existing $pageactions
object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\PageActions