Skip to content

Kirby 4.4.1

Media::link()

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

Media::link(Kirby\Cms\Page|Kirby\Cms\Site|Kirby\Cms\User|null $model, string $hash, string $filename): Kirby\Cms\Response|false

Parameters

Name Type Default
$model * Kirby\Cms\Page|Kirby\Cms\Site|Kirby\Cms\User|null
$hash * string
$filename * string

Return type

Kirby\Cms\Response|false

Parent class

Kirby\Cms\Media