Top menu

How to use a callback with SonataAdminBundle sonata_type_model_autocomplete in configureFormFields

The callback in sonata_type_model_autocomplete configuration is a callable function that can be used to modify the query which is used to retrieve autocomplete items.

The callback should receive three parameters – the Admin instance, the property (or properties) defined as searchable and the search value entered by the user.


No comments yet.

Leave a Reply