model.filter.filterScopes

Triggered in Backend\Widgets\Filter.

Called after the filter is initialized

Example usage:

$model->bindEvent('model.filter.filterScopes', function ((\Backend\Widgets\Filter) $filterWidget, (stdClass) $scopes, (string) $context) use (\October\Rain\Database\Model $model) {
    if ($someCondition) {
        $scopes->roles->hidden = false;
    }
});