DrupalCon Baltimore 2017: Events: The Object Oriented Hook System
About this talk
This talk explores the Event system in Drupal 8, which is based on the Symfony Event Dispatcher Component and is likely to replace the traditional hook system in future versions. The session covers the significance of events, the need for triggering them, and where hooks are still in use. Participants will learn how to create, dispatch, and subscribe to events, as well as the differences between event listeners and event subscribers. The speaker shares practical examples and a demo implementation, equipping attendees with the knowledge to create custom events in Drupal 8 and identify when to utilize hooks versus events. A basic understanding of Drupal 8 module development and Object-Oriented Programming principles is recommended for this session.