$site->visit()
Sets the current page by id or page object and returns the current page
$site->visit(string|\Kirby\Cms\Page $page, string $languageCode = null): Kirby\Cms\Page
Parameters
Name | Type | Default | Description |
---|---|---|---|
$page |
string |Kirby\Cms\Page |
– | |
$languageCode |
string |
null |