$kirby->setSite()
Sets a custom Site object
$kirby->setSite(Kirby\Cms\Site|array|null $site = null): Kirby\Cms\App
Parameters
| Name | Type | Default |
|---|---|---|
| $site | Kirby\Cms\Siteorarrayornull |
null
|
Return type
This method modifies the existing $app object it is applied to and returns it again.