drupal-routing-controllers
CommunityDefine Drupal routes and controllers.
Authorproofoftom
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers define how users access content and functionality within a Drupal site by setting up URL routes and the PHP code (controllers) that handles requests.
Core Features & Use Cases
- Route Definitions: Create
.routing.ymlfiles to map URLs to specific controller methods. - Controller Implementation: Write PHP classes to handle requests, return render arrays for pages, or JSON responses for APIs.
- Dependency Injection: Properly inject services into controllers for cleaner, more maintainable code.
- Use Case: When asked to create a new page at
/my-module/items/{item_id}that displays item details and requires specific permissions, this Skill will generate the necessary.routing.ymlentry and the corresponding controller class.
Quick Start
Use the drupal-routing-controllers skill to create a new page route for a custom content entity.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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-routing-controllers Download link: https://github.com/proofoftom/drupal-skills/archive/main.zip#drupal-routing-controllers 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 223,000+ vetted skills library on demand.