Events : Object Oriented Version of Hooks System

Drupal Username
purushotam.rai
Synopsis for Sessions

Overview

Drupal 8 uses events to allow modules and various subsystems to communicate with one another in an object-oriented manner. Understanding how the Event API works are critical knowledge for all module developers.

 

Agenda

  • Understand Drupal Events versus Hooks
  • Create an Event Subscriber with tags
  • Dispatching an Event
  • Discovering Existing Events
  • Q&A

Goal

Explain what events are, and their use case. Provide direction for people who want to learn more about working with events in their code.