Back to Joomla project (class list)

Class EventAwareInterface - list of methods

Interface defining application that can trigger Joomla 3.x style events
Package: Joomla\CMS\Application
Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Application/EventAwareInterface.php
Project: Joomla

Method Summary

public \Joomla\Event\DispatcherInterface
()

Get the event dispatcher.
Returns
  • \Joomla\Event\DispatcherInterface
Since
  • 4.0.0
-
  • \UnexpectedValueException May be thrown if the dispatcher has not been set.
Show source code of this method: getDispatcher Source Code

public array
(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
  • 4.0.0
Deprecated
  • 5.0
-
  • \InvalidArgumentException
Show source code of this method: triggerEvent Source Code

Tags Summary

Since
4.0.0
Deprecated
5.0
This interface will be removed as the Joomla 3.x compatibility layer will be removed