Skip to content

Kirby 3.6.1.1

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