You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hook code example given for Page::saveReady is missing a colon, Page:saveReady
$wire->addHook('Page:saveReady', function($e) {
$page = $e->object;
$name = $e->arguments(1);
if($name) {
$e->message("Ready to save field $name on page $page");
} else {
$e->message("Ready to save page $page");
}
});
The hook code example given for Page::saveReady is missing a colon,
Page:saveReady