feat: migrate media fields from entity_browser to media_library

Summary

ITCR-1084: Deprecate entity_browser in favor of core media_library widget.

Changes

  • Add update hook to change media field widgets from entity_browser_entity_reference to media_library_widget
  • Update config/optional form displays to use media_library_widget
  • Remove entity_browser dependency from info.yml

Why

This is part of the YUSAOpenY initiative to remove deprecated entity_browser and media_directories modules in favor of Drupal core Media Library.

Test plan

  1. Run drush updb to execute update hooks
  2. Edit content with media fields
  3. Verify media fields use Media Library widget (not Entity Browser)
  4. Check browser console for no JavaScript errors

Related: https://github.com/YCloudYUSA/yusaopeny_docs/issues/138

Merge request reports

Loading