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.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

grevil created an issue. See original summary.

grevil’s picture

Title: Implement "VideoJsMediaReferenceFormatter" targetting "entity_reference" field types » [10.x] Implement "VideoJsMediaReferenceFormatter" targetting "entity_reference" field types
anybody’s picture

anybody’s picture

Category: Bug report » Feature request
Priority: Normal » Minor
Status: Active » Postponed

Minor as there's already a probably better way.

anybody’s picture

Issue summary: View changes
anybody’s picture

Title: [10.x] Implement "VideoJsMediaReferenceFormatter" targetting "entity_reference" field types » [10.x] Implement "VideoJsMediaReferenceFormatter" targeting "entity_reference" field types
anybody’s picture

Issue summary: View changes

With 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.

anybody’s picture

Issue summary: View changes
anybody’s picture

Issue summary: View changes