backend.filter.extendScopes

Triggered in Backend\Widgets\Filter.

Provides an opportunity to interact with the Filter widget & its scopes after the filter scopes have been initialized

Example usage:

Event::listen('backend.filter.extendScopes', function ((\Backend\Widgets\Filter) $filterWidget) {
    $filterWidget->addScopes([
        'my_scope' => [
            'label' => 'My Filter Scope'
        ]
    ]);
});

Or

$listWidget->bindEvent('filter.extendScopes', function () use ((\Backend\Widgets\Filter) $filterWidget) {
    $filterWidget->removeScope('my_scope');
});