drupal-services

Community

Inject Drupal services cleanly into code.

Authoredutrul
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Dependency injection for Drupal controllers, forms, and plugins eliminates hard-coded service lookups, improving testability and maintainability.

Core Features & Use Cases

  • Provides DI patterns for Controllers, Forms, and Plugins using Drupal's container.
  • Encourages use of ContainerInjectionInterface and ContainerFactoryPluginInterface for clean wiring.
  • Recommends autowiring and standard service IDs via services.yml for decoupled, testable code.

Quick Start

Create a custom service in your module and inject it into a controller using ContainerInjectionInterface and services.yml.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: drupal-services
Download link: https://github.com/edutrul/drupal-ai/archive/main.zip#drupal-services

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.