Module Development

Add Configuration to a Service for Drupal 8

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Sprout Video

In this tutorial, we'll inject some configuration into our constructor class and introduce parameters by way of our services YAML file.

Additional resources

An Introduction to YAML — Drupalize.Me