- Issue created by @mglaman
In
#2988433-27: Automatically create and configure Media Library view and form displays →
it was decided that _media_library_configure_form_display
and _media_library_configure_view_display
should only be run if a media type is created via the user interface.
I'm not 100% certain, but I'm inclined to agree, because the media library is also a UI concept, not an API concept, and this "Media Library" view and form modes are configuration that also only makes sense when using a UI.
To me that doesn’t really make sense, since you can programmatically create display modes. API-First shouldn’t be HTTP API first, but code API-First as well.
Create a media type programmatically, or through the UI and forget to commit the view/form displays.
media_library doesn't use the proper display in the media library UI
Remove _media_library_media_type_form_submit
in favor of hook_ENTITY_TYPE_insert
of hook_media_type_insert
None
Active
11.0 🔥
Last updated
Makes Drupal easier to use. Preferred over UX, D7UX, etc.
Enhances developer experience.