Skip to content

Kirby 5.0.4

$page->move()

Moves the page to a new parent if the new parent accepts the page type

$page->move(Kirby\Cms\Site|Kirby\Cms\Page $parent): Kirby\Cms\Page

Parameters

Name Type Default
$parentrequired Kirby\Cms\SiteorKirby\Cms\Page no default value

Return type

Kirby\Cms\Page

This method modifies the existing $page object it is applied to and returns it again.

Parent class

Kirby\Cms\Page