$pageActions->duplicate()
Duplicates the page with the given slug and optionally copies all files
$pageActions->duplicate(string|null $slug = null, array $options = [ ]): Kirby\Cms\PageActions
Parameters
Name | Type | Default |
---|---|---|
$slug | string ornull |
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