Module Development

Create a Service for Drupal 8

Sprout Video

In this tutorial, you'll learn how to refactor the controller and create a service.

Additional resources

Dependency Injection and the Art of Services and Containers — Drupalize.Me