Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
media system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2025 at 21:46 UTC
Updated:
25 Oct 2025 at 08:54 UTC
Jump to comment: Most recent
In #3534587: Deprecate node_type_get_names we added EntityBundleInfo::getBundleLabels to streamline getting a list of bundle labels for an entity type. This can be used in various places in core to reduce duplication.
One place is MediaEmbed::settingsForm, there are probably other places.
Replace usages of getBundleInfo that map bundles to an array of labels to use getBundleLabels
Review
None
None
None
None
None
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
catchComment #5
acbramley commentedBeauty, thanks!
Comment #6
acbramley commentedChecking other spots we can use this actually.
Comment #7
acbramley commentedFound a few more easy replacements
Comment #8
acbramley commentedComment #9
dtrdewaele commentedYeah planned to find other places today, but you were faster :)
Comment #10
smustgrave commentedSeems like a good refactor!
Comment #13
catchCommitted/pushed to 11.x, thanks!