public function Event::setDispatcher

Stores the EventDispatcher that dispatches this Event

@api

Parameters

EventDispatcherInterface $dispatcher:

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Event.php, line 81

Class

Event
Event is the base class for classes containing event data.

Namespace

Symfony\Component\EventDispatcher

Code

public function setDispatcher(EventDispatcherInterface $dispatcher) {
  $this->dispatcher = $dispatcher;
}