mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Add global event for filter widget to extend model options query
This commit is contained in:
parent
6420027a6a
commit
8ed463e2c9
@ -221,6 +221,10 @@ class Filter extends WidgetBase
|
||||
$model = $this->scopeModels[$scope->scopeName];
|
||||
$query = $model->newQuery();
|
||||
|
||||
/*
|
||||
* Extensibility
|
||||
*/
|
||||
Event::fire('backend.filter.extendScopesBefore', [$this, $query, $scope]);
|
||||
$this->fireEvent('filter.extendQuery', [$query, $scope]);
|
||||
|
||||
if (!$searchQuery) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user