FileRules::delete()
Validates if the file can be deleted
FileRules::delete(Kirby\Cms\File $file): void
Parameters
Name | Type | Default |
---|---|---|
$filerequired | Kirby\Cms\File |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to delete the file |