Skip to content

Kirby 4.1.2

file.update:before

/site/config/config.php
return [
    'hooks' => [
        'file.update:before' => function (Kirby\Cms\File $file, array $values, array $strings) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$file Kirby\Cms\File
$values array
$strings array