Skip to content

Kirby 3.5.7.1

Sane::validate()

Validates file contents with the specified handler

Sane::validate(string $string, string $type): void

Parameters

Name Type Default
$string * string
$type * string

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the file didn't pass validation
Kirby\Exception\NotFoundException If the handler was not found
Kirby\Exception\Exception On other errors

Parent class

Kirby\Sane\Sane