public function EventDispatcherInterface::dispatch in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/EventDispatcherInterface.php \Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()
Dispatches an event to all registered listeners.
Parameters
string $eventName The name of the event to dispatch. The name of: the event is the name of the method that is invoked on listeners.
Event $event The event to pass to the event handlers/listeners.: If not supplied, an empty Event instance is created.
Return value
4 methods override EventDispatcherInterface::dispatch()
- ContainerAwareEventDispatcher::dispatch in core/
lib/ Drupal/ Component/ EventDispatcher/ ContainerAwareEventDispatcher.php - Dispatches an event to all registered listeners.
- EventDispatcher::dispatch in vendor/
symfony/ event-dispatcher/ EventDispatcher.php - Dispatches an event to all registered listeners.
- ImmutableEventDispatcher::dispatch in vendor/
symfony/ event-dispatcher/ ImmutableEventDispatcher.php - Dispatches an event to all registered listeners.
- TraceableEventDispatcher::dispatch in vendor/
symfony/ event-dispatcher/ Debug/ TraceableEventDispatcher.php - Dispatches an event to all registered listeners.
File
- vendor/
symfony/ event-dispatcher/ EventDispatcherInterface.php, line 34
Class
- EventDispatcherInterface
- The EventDispatcherInterface is the central point of Symfony's event listener system. Listeners are registered on the manager and events are dispatched through the manager.
Namespace
Symfony\Component\EventDispatcherCode
public function dispatch($eventName, Event $event = null);