Edit on GitHub

The Event module implements an observer pattern, where you can add hooks (events) to your code and allow other modules to listen and react to those events.

There are two methods:

  1. Traditional Synchronous: Listeners are handled at the same time as they are dispatched.
  2. Asynchronous (Queueable): Events are put into a queue and handled later by some queue service.