Skip to content

Kirby 5.0.4

$site->toLink()

Returns link url and title for model (e.g. used for prev/next navigation)

$site->toLink(string $title = 'title'): array

Parameters

Name Type Default
$title string 'title'

Return type

array

This method modifies the existing $site object it is applied to and returns it again.

Parent class

Kirby\Panel\Site inherited from Kirby\Panel\Model