Skip to content

Kirby 5.4.4

$pageActions->copy()

Copies the page to a new parent. Low-level method, ensure to run all necessary checks (e.g. permissions) before calling it.

$pageActions->copy(array $options = [ ]): Kirby\Cms\PageActions

Parameters

Name Type Default
$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 →

Exceptions

Type Description
Kirby\Exception\DuplicateException If the page already exists

Parent class

Kirby\Cms\PageActions