Skip to content

Kirby 4.4.1

Svg::validateFile()

Validates the contents of a file

Svg::validateFile(string $file): void

Parameters

Name Type Default
$file * string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the file didn't pass validation
Kirby\Exception\Exception If the file does not exist
Kirby\Exception\Exception On other errors

Parent class

Kirby\Sane\Svg inherited from Kirby\Sane\Handler