Problem/Motivation
#2030151: Convert entity_get_bundles to a method on the entity manager refactors entity_get_bundles() to be a method on an injected service.
entity_get_bundles() is also converted to a wrapper function for that injected service, which should be discouraged from use.
Proposed resolution
Mark entity_get_bundles() as deprecated for Drupal 9.
Remaining tasks
Update the change record here: https://www.drupal.org/node/1901332
#2427637: Remove usages of deprecated entity_get_bundles() removes usages of entity_get_bundles().
User interface changes
API changes
Data model changes
Beta phase evaluation
| Issue category | Task because it's a documentation change. |
|---|---|
| Issue priority | Normal because nothing is broken. |
| Unfrozen changes | Unfrozen because it only changes the docblock for entity_get_bundles(). |
| Disruption | Low disruption because it leaves the function in place. |
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2526462_1.patch | 716 bytes | mile23 |
Comments
Comment #1
mile23Just marks the method as deprecated.
Comment #2
jibranComment #3
jibranNW actually for beta eval.
Comment #4
mile23Added beta eval.
Comment #5
jibranComment #7
xjmThanks, looks great! Good to see more of this wrapper cruft being deprecated properly so we can clean it up in later releases.
This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. Commited and pushed to 8.0.x.