$productPage->duplicate()
Duplicates the page with the given slug and optionally copies all files
$productPage->duplicate(null|string $slug = null, array $options = []): Kirby\Cms\Page
Parameters
| Name | Type | Default |
|---|---|---|
$slug |
null or string |
null |
$options |
array |
[] |
Return type
Parent class
Wagnerwagner\Merx\ProductPage inherited from Kirby\Cms\Page