Module Development

Create an Event Subscriber with Tags for Drupal 8

Sprout Video

In this tutorial, you will learn how to create an event subscriber with dependency injection tags. You'll learn how to tell Drupal which event we want our code to listen for and what method to call when that event happens.

Additional resources

An Introduction to YAML — Drupalize.Me
Introduction to Interfaces — Drupalize.Me