Skip to content

Kirby 3.7.5

file.changeName:before

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

Parameters

Parameter Type
$file Kirby\Cms\File
$name string