Skip to content

Kirby 3.6.6

file.changeSort:before

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

Parameters

Parameter Type
$file Kirby\Cms\File
$position int