Reference

Guide

page.update:before

$page, $values, $strings

Example

/site/config/config.php
return [
    'hooks' => [
        'page.update:before' => function ($page, $values, $strings) {
            // your code goes here
        }
    ]
]