What problem does it solve?
This Skill simplifies the creation of custom content and configuration entities in Drupal, along with their associated fields, streamlining data modeling and management within your Drupal site.
Core Features & Use Cases
- Entity Type Creation: Define both content and configuration entity types using modern PHP attributes (D11+) or annotations (D10).
- Field Definition: Create base fields for content entities and manage properties for config entities.
- Handler Configuration: Set up essential handlers like form builders, list builders, and route providers for entity management.
- Bundle Support: Implement subtype functionality for content entities, linking them to their corresponding bundle configuration entities.
- Use Case: You need to create a new "Event" content entity type with fields for date, location, and a description, and also a "Event Type" configuration entity to manage different kinds of events (e.g., "Conference", "Workshop").
Quick Start
Create a Drupal content entity called 'product' with a string field for 'name' and a timestamp field for 'created'.