Skip to content

Kirby 4.5.0

Handler::validate()

Validates file contents

Handler::validate(string $string, bool $isExternal = false): void

Parameters

Name Type Default Description
$string * string
$isExternal bool false Whether the string is from an external file
that may be accessed directly

Exceptions

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

Parent class

Kirby\Sane\Handler