Basic PHP coding skills.
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.
Dependency injection is the preferred method for accessing and using services in Drupal 8 and should be used whenever possible. Rather than calling out to the global services container, services are instead passed as arguments to a constructor or injected via setter methods.
In this session, you will learn below points:
- Core Services, Altering existing services, providing dynamic services
- Service Tags
- What is Dependency Injection and Dependency Injection for a Form with working example
- Why to use Dependency Injection instead of calling out the global services container.