Skip to content

Kirby 3.6.6

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
$hash * string
$filename * string

Return type

Kirby\Cms\Response|false

Parent class

Kirby\Cms\Media