I've created a new event dispatcher and its container in order to be able to modify any type of data:
Model/HyvaPrefetchEventDispatcher.php
We only pass 2 parameters to the event: the grid name and the data to be replaced
The Event Dispatcher will receive this data (no typing can be done here, because the data might be of any type), and will use the HyvaAdminEventContainer to wrap that data and send it to the final event
Using the functions getContainerData / replaceContainerData will be enought to do the desired modifications in an observer. This should be documented first in case this PR is OK for you.
Please let me know what you think (and, of course, the things you think could be improved in the release itself).
I've tested this with my custom observer and worked fine :)
Hi @Vinai,
I've created a new event dispatcher and its container in order to be able to modify any type of data:
Model/HyvaPrefetchEventDispatcher.php
Model/GridSourceType/RepositorySourceType/HyvaAdminEventContainer.php
Please let me know what you think (and, of course, the things you think could be improved in the release itself).
I've tested this with my custom observer and worked fine :)