drupal-hooks
CommunityDrupal 11 hooks: OOP and procedural guidance.
Authoredutrul
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps Drupal developers understand and implement hooks across procedural and object-oriented styles, clarifying when to use hooks versus events and how to structure modules for Drupal 11.
Core Features & Use Cases
- OOP Hooks: Auto-registered hooks in src/Hook for Drupal 11.
- Procedural Hooks: Classic hook_form_alter and other procedural hooks in .module files.
- Decision Guidance: Clear criteria on when to use hook_form_alter vs event subscribers.
Quick Start
Create an OOP hook in your Drupal 11 module using #[Hook] to handle a specific form alteration.
Dependency Matrix
Required Modules
None requiredComponents
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-hooks Download link: https://github.com/edutrul/drupal-ai/archive/main.zip#drupal-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.