Skip to content

Kirby 4.1.2

$file->previewUrl()

Simplified File URL that uses the parent Page URL and the filename as a more stable alternative for the media URLs.

$file->previewUrl(): string

Return type

string

Parent class

Kirby\Cms\File