backend.list.overrideColumnValue
Overrides the column value in a list widget.
If a value is returned from this event, it will be used as the 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.overrideColumnValue', function ($listWidget, $record, $column, &$value) {
$value .= '-modified';
});
Or
$listWidget->bindEvent('list.overrideColumnValue', function ($record, $column, $value) {
return 'No values for you!';
});
Usage
Triggers
Class or file | Line |
---|---|
Backend\Widgets\Lists
|
1181 |
Copyright © 2024 Winter CMS