$file->toLink()
Returns link url and title for model (e.g. used for prev/next navigation)
$file->toLink(string $title = 'title'): array
Parameters
| Name | Type | Default |
|---|---|---|
| $title | string |
'title'
|
Return type
array
This method modifies the existing $file object it is applied to and returns it again.
Parent class
Kirby\Panel\File
inherited from Kirby\Panel\Model