Skip to content

Kirby 4.4.1

$file->is()

Checks if a file is of a certain type

$file->is(string $value): bool

Parameters

Name Type Default Description
$value * string An extension or mime type

Return type

bool

Parent class

Kirby\Filesystem\File