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

Reference: https://www.drupal.org/core/beta-changes
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.
CommentFileSizeAuthor
#1 2526462_1.patch716 bytesMile23
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mile23’s picture

Status: Active » Needs review
FileSize
716 bytes

Just marks the method as deprecated.

jibran’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quickfix, +Needs beta evaluation
jibran’s picture

Status: Reviewed & tested by the community » Needs work

NW actually for beta eval.

Mile23’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs beta evaluation

Added beta eval.

jibran’s picture

Status: Needs review » Reviewed & tested by the community

  • xjm committed 85de42c on 8.0.x
    Issue #2526462 by Mile23: Mark entity_get_bundles() as @deprecated for 9...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.