Edit this page


An event mechanism is available to add an extra entry point to extend an Admin instance.


This event is generated when a form, list, show, datagrid is configured. The event names are:

  • sonata.admin.event.configure.form
  • sonata.admin.event.configure.list
  • sonata.admin.event.configure.datagrid


This event is generated when a persistency layer update, save or delete an object. The event names are:

  • sonata.admin.event.persistence.pre_update
  • sonata.admin.event.persistence.post_update
  • sonata.admin.event.persistence.pre_persist
  • sonata.admin.event.persistence.post_persist
  • sonata.admin.event.persistence.pre_remove
  • sonata.admin.event.persistence.post_remove


This event is generated when a list query is defined. The event name is: sonata.admin.event.configure.query


Block events help you customize your templates. Available events are :

  • sonata.admin.dashboard.bottom
  • sonata.admin.list.table.bottom
  • sonata.admin.edit.form.bottom

If you want more information about block events, you should check the "Event" section of block bundle documentation.


This event is dispatched when a batch action is being executed. The event name is:

  • sonata.admin.event.batch_action.pre_batch_action
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.