backend.filter.overrideHeaderValue

Triggered in Backend\Widgets\Filter.

Overrides the scope header value in a filter widget.

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

Event::listen('backend.filter.overrideHeaderValue', function ($filterWidget, $scope, &$value) {
    $value .= '-modified';
});

Or

$filterWidget->bindEvent('filter.overrideHeaderValue', function ($scope, $value) {
    return 'Custom header value';
});