Don't assume default Media bundles and default image fields

Created on 10 October 2024, 3 months ago

Problem/Motivation

Right now, this module is asuming the user will use the default Image media bundles with the default field names that Drupal provides out of the box.

This can't be the case.

Steps to reproduce

- Add this module to a field that uses a Image media entity whose bundle name is not "image" and / or the field that holds the file reference is not named "field_media_image"
- It won't work.

Proposed resolution

Media entities have a MediaSource that can be interrogatted to get the actual information.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain idiaz.roncero Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024