mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Opens a channel for model to talk with form widget
.. and controller and beyond.
This commit is contained in:
parent
c5975b3917
commit
9eb0cc24ae
@ -1021,6 +1021,8 @@ class Form extends WidgetBase
|
||||
if (method_exists($this->model, 'filterFields')) {
|
||||
$this->model->filterFields((object) $this->allFields, $this->getContext());
|
||||
}
|
||||
|
||||
$this->model->fireEvent('model.form.filterFields', [$this]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user