Drupal 8 provides a powerful and performance efficient way how modules can interact with each other.( I.e we can fire any custom code on a perticular action like, when save configuration of site name etc fire my custom code etc ) Modules can either dispatch events, subscribe to events, or both. Subscribing to an event allows a module to declare that it would like to be notified anytime a specific event happens. A module can subscribe to any number of events, and can even subscribe to the same event more than once. Dispatching an event allows a module, or Drupal core subsystem, to notify any registered subscribers that a specific event has just taken place. When an event is dispatched the registered code for each subscriber is executed. For example, whenever a configuration entity is updated the Configuration API dispatches a new event allowing all subscribers to react to the change. Subscribing to an e...
Trying to Learn new things on drupal.