Skip to content

$site->setPage()

Sets the current page object

$site->setPage(Kirby\Cms\Page $page = null): Kirby\Cms\Site

Parameters

Name Type Default
$page Kirby\Cms\Page null

Return type

Kirby\Cms\Site

This method does not modify the existing $site object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Site