Sometimes, you want to create a plugin that reacts to changes made in the back end of Gantry 5. Changing the layout, style settings, etc. will impact the front end of the website, and you may find yourself in a situation where you want another part of your site's infrastructure to notice that change and respond.
There are following events in Joomla:
Additionally Gantry 5 calls these events directly:
Rest of the events are called by Joomla when saving JTable for template styles, menus etc..
Some Joomla events are missing from this list, though you can still hook to Gantry's own event listener (symfony/event-dispatcher) which can be accessed by Gantry DI:
$gantry = \Gantry\Framework\Gantry::instance(); /** @var EventDispatcher $events */ $events = $gantry['events']; $listener = new EventListener; // Your listener class. $events->addSubscriber($listener);