Skip to content

$page->setSite()

Setter for the parent site object

$page->setSite(Kirby\Cms\Site $site = null): Kirby\Cms\Model

Parameters

Name Type Default
$site Kirby\Cms\Site null

Return type

Kirby\Cms\Model

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

Parent class

Kirby\Cms\Page inherited from Kirby\Cms\Model