Skip to content

Kirby 4.4.1

$file->filename()

Returns the filename with extension

$file->filename(): string

Return type

string

Parent class

Kirby\Cms\File

Example

if($file = $page->file()) {
    echo $file->filename();
}