Handler::validate()
Validates file contents
Handler::validate(string $string): void
Parameters
| Name | Type | Default |
|---|---|---|
| $string * | string |
– |
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the file didn't pass validation |
Kirby\Exception\Exception |
On other errors |