Back to EventAwareInterface class

Method getDispatcher

public \Joomla\Event\DispatcherInterface
getDispatcher
()
Get the event dispatcher.
Returns
  • \Joomla\Event\DispatcherInterface
Since
  • 4.0.0
-
  • \UnexpectedValueException May be thrown if the dispatcher has not been set.

Method getDispatcher - Source code

/**
 * Get the event dispatcher.
 *
 * @return  DispatcherInterface
 *
 * @since   4.0.0
 * @throws  \UnexpectedValueException May be thrown if the dispatcher has not been set.
 */
public function getDispatcher();