⇦ Back to EventAwareInterface classMethod triggerEvent
public array
triggerEvent
(mixed $eventName, mixed $args = [])
Calls all handlers associated with an event group.
Parameters
- string $eventName The event name.
- array|\Joomla\Event\Event $args An array of arguments or an Event object (optional).
Returns
- array An array of results from each function call. Note this will be an empty array if no dispatcher is set.
Since
Deprecated
-
- \InvalidArgumentException
Method triggerEvent - Source code
public function triggerEvent($eventName, $args = []);