Reference

Guide

page.duplicate:before

$originalPage, $input, $options

Example

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