$image->match()
Runs a set of validations on the file object (mainly for images).
$image->match(array $rules): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $rulesrequired | array |
no default value |
Return type
bool
This method modifies the existing $image object it is applied to and returns it again.
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\Exception |
Parent class
Kirby\Image\Image
inherited from Kirby\Filesystem\File