$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
This method modifies the existing $site object it is applied to and returns it again.