Skip to content

Kirby 4.5.0

page.duplicate:before

/site/config/config.php
return [
    'hooks' => [
        'page.duplicate:before' => function (Kirby\Cms\Page $originalPage, array $input, array $options) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$originalPage Kirby\Cms\Page
$input array
$options array