Module Development

Access a Service within a Service for Drupal 8

Sprout Video

In this tutorial, you'll learn how to get a service that's in another service by using the special constructor method.

Additional resources

PHP Class Constructors — Drupalize.Me