backend.form.refresh

Called after the form is refreshed, should return an array of additional result parameters.

Example usage:

Event::listen('backend.form.refresh', function ((\Backend\Widgets\Form) $formWidget, (array) $result) {
    $result['#my-partial-id' => $formWidget->makePartial('$/path/to/custom/backend/partial.php')];
    return $result;
});

Or

$formWidget->bindEvent('form.refresh', function ((array) $result) use ((\Backend\Widgets\Form $formWidget)) {
    $result['#my-partial-id' => $formWidget->makePartial('$/path/to/custom/backend/partial.php')];
    return $result;
});

Usage

Triggers

Class or file Line
Backend\Widgets\Form 440
Copyright © 2024 Winter CMS