Skip to content

Kirby 6.0.0

$pageActions->duplicate()

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

$pageActions->duplicate(string|null $slug = null, array $options = []): 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