Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In #1967294: Add a dedicated @EntityType annotation it was clarified that only core properties should be on EntityType.
Contrib will need its own way to provide defaults and document them.
/D
That is why we still have hook_entity_info(). It runs before hook_entity_info_alter() as a way to supplement the annotation.
Comments
Comment #1
andypostGot this trouble in #1907960-154: Helper issue for "Comment field" no way to implement
entity_reference
settings per bundle or dinamicallyComment #2
plachWorking on this.
Comment #3
plachThis is a duplicate of #1968970: Standardize module-provided entity info documentation and clean-up the @EntityType annotation.
Comment #4
tim.plunkettAh! I knew I'd filed this before. Wow.