Skip to content

Kirby 3.5.7.1

file.changeSort:before

$file, $position

/site/config/config.php
return [
    'hooks' => [
        'file.changeSort:before' => function ($file, $position) {
            // your code goes here
        }
    ]
]