Add global event for filter widget to extend model options query

This commit is contained in:
Michał Płodowski 2015-06-12 15:54:05 +02:00
parent 6420027a6a
commit 8ed463e2c9

View File

@ -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) {