EventDispatcher: the natural successor of hooks

One of the biggest changes in Drupal 8, if not the biggest, is the adoption of Symfony components. One of those components is the EventDispatcher, which has already replaced some hooks in Drupal 8 and will probably continue to do so in future versions. With the EventDispatcher component we can:

  • Subscribe to any existing events in our app and run custom code when those events happen.
  • Launch our own events.

In this session we will see how does the EventDispatcher component work, and we will also see a practical example that will ilustrate how to use it in a Drupal 8 module.

Evento
DrupalCampSpain 2016
Nivel
Avanzado
Idioma
Inglés
Ponente
info