Skip to content

Kirby 3.8.4

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