Problem/Motivation
Original request: #3077401: Integrate with core media module
We don't plan to implement this for now, as for most cases it is enough to modify the media entity fields display type themselves, and in other cases we can still use the pass-through formatter to delegate entity reference display settings to the underlying field display settings.
You may also use https://www.drupal.org/project/field_formatter to bridge it.
The downside of the pass-through formatter is, that we need to define additional display modes on the underlying media entity, even though they are node specific. On enormous sites, this often leads to 10 different display modes for a media entity, even though most of them are content type (node) specific.
For these cases a dedicated entity_reference field formatter (targeting entity reference fields of type "media") can be beneficial.
We need to make sure, this formatter is polymorph, meaning it holds both the audio and video settings etc. - we should NOT add multiple VideoJsMediaReferenceFormatters because that wouldn't be helpful.
As long as the current solution is good enough, we should try to get around it for sake of complexity.
If you think, you need this, feel free to give examples why and when this is useful and can't be solved using the current implementation.
Steps to reproduce
Proposed resolution
Implement "VideoJsMediaReferenceFormatter" targetting "entity_reference" Media field types, combining all other formatter settings due to required polymorphy.
Comments
Comment #2
grevil commentedComment #3
anybodyComment #4
anybodyMinor as there's already a probably better way.
Comment #5
anybodyComment #6
anybodyComment #7
anybodyWith 10.0.0-alpha1 released the issue summary reflects the current state and plan.
If you think, you need this, feel free to give examples why and when this is useful and can't be solved using the current implementation.
Comment #8
anybodyComment #9
anybody