I have a hook in a ready.php file, that is supposed to fill a page’s field when a public form is submitted.
wire()->addHookBefore("Pages::saveReady", function(HookEvent $event) {
// do all that for font pages only
$page = $event->arguments(0);
// avoid the error “page can’t be saved”
if...