backend.form.beforeRefresh

Triggered in Backend\Widgets\Form.

Called before the form is refreshed, modify the $dataHolder->data property in place

Example usage:

Event::listen('backend.form.beforeRefresh', function ((\Backend\Widgets\Form) $formWidget, (stdClass) $dataHolder) {
    $dataHolder->data = $arrayOfSaveDataToReplaceExistingDataWith;
});

Or

$formWidget->bindEvent('form.beforeRefresh', function ((stdClass) $dataHolder) {
    $dataHolder->data = $arrayOfSaveDataToReplaceExistingDataWith;
});