Understanding and Implementing Dependency Injection concept.

Drupal 8 introduces the concept of services to decouple reusable functionality and makes these services pluggable and replaceable by registering them with a service container. As a developer, it is best practice to access any of the services provided by Drupal via the service container to ensure the decoupled nature of these systems is respected.

Your task is to create a simple Drupal 8 module that implements and demonstrates the Dependency Injection concept. Also, write a blog post explaining the same.

Deliverables: A link to blogpost and code repository implementing the Dependency Injection concept on a simple Drupal 8 module you created

Task tags

  • Dependency Injection

Students who completed this task


Task type

  • code Code
  • assessment Outreach / Research