Skip to content

Kirby 4.4.1

F::is()

Checks if a file is of a certain type

F::is(string $file, string $value): bool

Parameters

Name Type Default Description
$file * string Full path to the file
$value * string An extension or mime type

Return type

bool

Parent class

Kirby\Filesystem\F