Skip to content

Kirby 3.9.8

FileRules::update()

Validates if the file can be updated

FileRules::update(Kirby\Cms\File $file, array $content = [ ]): bool

Parameters

Name Type Default
$file * Kirby\Cms\File
$content array [ ]

Return type

bool

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to update the file

Parent class

Kirby\Cms\FileRules