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.
entity_get_bundles
is deprecated: https://api.drupal.org/api/drupal/core%21includes%21entity.inc/function/...
The deprecation notice points to EntityManagerInterface
which is also deprecated. https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...
Should that point to EntityTypeBundleInfo
or EntityTypeBundleInfoInterface
instead?
Comments
Comment #2
BerdirYes, see my comment in #2427637: Remove usages of deprecated entity_get_bundles(). We could update the documentation either here or over there.
Comment #6
FeyP CreditAttribution: FeyP as a volunteer and at werk21 commentedThe suggested change has since been implemented in #2731309: docs for deprecated functions in core/includes/entity.inc refer to deprecated entityManager(), so I'll close this as a duplicate of that issue. The deprecation message added is actually slightly misleading, but I opened #2895096: Update misleading deprecation message for entity_get_bundles() for that to avoid confusion.