Skip to content

Kirby 3.9.8

$pageactions->duplicate()

Duplicates the page with the given slug and optionally copies all files

$pageactions->duplicate(?string $slug = null, array $options = [ ]): Kirby\Cms\Page

Parameters

Name Type Default
$slug string|null null
$options array [ ]

Return type

Kirby\Cms\Page

Parent class

Kirby\Cms\PageActions