Drupal Custom Entities with Bundle Classes
Drupal 9.3 quietly introduced support for defining bundle classes in custom entities—a long-awaited feature for developers seeking cleaner architecture. But with sparse documentation and incomplete tooling, implementing it can be frustrating. Hard-earned insights and a working example help navigate this underdeveloped corner of Drupal.