backend.list.overrideColumnValueRaw

Overrides the raw column value in a list widget.

If a value is returned from this event, it will be used as the raw value for the provided column. $value is passed by reference so modifying the variable in place is also supported. Example usage:

Event::listen('backend.list.overrideColumnValueRaw', function ($listWidget, $record, $column, &$value) {
    $value .= '-modified';
});

Or

$listWidget->bindEvent('list.overrideColumnValueRaw', function ($record, $column, $value) {
    return 'No values for you!';
});

Usage

Triggers

Class or file Line
Backend\Widgets\Lists 1134
Copyright © 2024 Winter CMS