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.
Best practice is now to directly query the database for bundle info. I ran into this issue when a recent change to Entity reference caused a WSOD in conjunction with my own entity-providing module. I'm sure there are plenty of other issues with the same cause cropping up.
Comment | File | Size | Author |
---|---|---|---|
model_entity_info_alter_fix.patch | 714 bytes | Matthew Davidson |
Comments
Comment #1
Anybody#2225895: Remove hook_entity_info_alter is related, duplicate and seems to be even a bit better solution.