Skip to content

Kirby 5.0.4

$kirby->image()

Return an image from any page specified by the path

$kirby->image(string|null $path = null): Kirby\Cms\File|null

Parameters

Name Type Default
$path stringornull null

Return types

Kirby\Cms\Fileornull

This method modifies the existing $app object it is applied to and returns it again.

Parent class

Kirby\Cms\App