This content may be out-of-date

This book was written circa 2022, when Joomla 4 was still a new thing. It has not been updated for Joomla 5 and beyond, and it's no longer being worked on. You can usually find more up-to-date information in the official Joomla! Manual.

Using plugin events

Table classes can call plugin events. For example, Joomla's default Table::check() implementation goes through the onTableCheck plugin event to let plugins perform additional data validation before data is written to the database.

The Table superclasses offer a getDispatcher() method to get a reference to Joomla's Events Dispatcher object. As we noted in the Controllers section this is the preferred way to use plugins in Joomla 4 and beyond.