Skip to content

Kirby 5.0.4

PageCopy::process()

Processes the copy with all necessary adaptations. Main method to use if not familiar with individual steps.

PageCopy::process() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

PageCopy::process(Kirby\Cms\Page $copy, Kirby\Cms\Page|null $original = null, bool $withFiles = false, bool $withChildren = false): Kirby\Cms\Page

Parameters

Name Type Default
$copyrequired Kirby\Cms\Page no default value
$original Kirby\Cms\Pageornull null
$withFiles bool false
$withChildren bool false

Return type

Kirby\Cms\Page

Parent class

Kirby\Cms\PageCopy