Problem/Motivation
The microsite logo field uses the entity ref autocomplete widget by default, instead of media library. This is clunky and means you have to add the logo as a media image first, and then select it via autocomplete.
Not sure whether there is a specific reason for this but it's easy enough to change so thought I'd propose it.
Proposed resolution
Use the media_libary_widget instead.
Remaining tasks
- Create merge request
- Review
User interface changes
Before:

After:

API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2022-03-18 at 12.17.14 pm.png | 30.56 KB | pameeela | |
| Screen Shot 2022-03-18 at 12.19.01 pm.png | 39.03 KB | pameeela |
Issue fork entity_hierarchy-3270235
Show commands
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:
- 3.x
changes, plain diff MR !3
- 8.x-2.x
compare
- 3270235-use-media-library
changes, plain diff MR !2
Comments
Comment #5
pameeela commentedComment #6
larowlanWill merge this once it comes back green
Comment #8
larowlanTest fails are because we don't have a composer.json and MR's don't install test dependencies from info.yml