Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getDispatcher () | |
triggerEvent ($eventName, $args=[]) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Interface defining application that can trigger Joomla 3.x style events
getDispatcher | ( | ) |
Get the event dispatcher.
triggerEvent | ( | $eventName, | |
$args = [] |
|||
) |
Calls all handlers associated with an event group.
This is a legacy method, implementing old-style (Joomla! 3.x) plugin calls. It's best to go directly through the Dispatcher and handle the returned EventInterface object instead of going through this method. This method is deprecated and will be removed in Joomla! 5.x.
This method will only return the 'result' argument of the event
string | $eventName | The event name. |
array | Event | $args | An array of arguments or an Event object (optional). |