Skip to content

Kirby 5.0.4

$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 stringornull 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