page.changeStatus:before
return [
    'hooks' => [
        'page.changeStatus:before' => function (Kirby\Cms\Page $page, string $status, ?int $position = null) {
            // your code goes here
        }
    ]
]Parameters
| Parameter | Type | 
|---|---|
| $page | Kirby\Cms\Page | 
| $status | string | 
| $position | int|null |