Skip to content

Kirby 3.9.8

Media::link()

Tries to find a file by model and filename and to copy it to the media folder.

Media::link(?Kirby\Cms\Model $model, string $hash, string $filename): Kirby\Cms\Response|false

Parameters

Name Type Default
$model * Kirby\Cms\Model|null
$hash * string
$filename * string

Return type

Kirby\Cms\Response|false

Parent class

Kirby\Cms\Media