Field formatter with inline settings does not provide third_party_settings form of target field

Created on 3 September 2019, almost 5 years ago
Updated 16 October 2023, 9 months ago

Context

Drupal fields now more and more use third_party_settings. For example layout_builder heavily relies on third_party_settings and common modules like fences also do.

Problem

As we found out, field_formatter with inline settings doesn't show these third_party_settings attached to the target entity field. As it uses "_custom" view mode, you have no chance to influence these third_party_settings, which may be important for the field display.

Reproduction

Install field_formatter and fences modules in a Drupal project with media.
Add an entity reference field to a node pointing to (for example) a media image entity. Chose field_formatter with inline settings and configure all fences settings to be "None" (no wrappers).
Only the reference field wrappers are removed, but not the ones of the referenced image entity. These can not be modified, even if you change the default media image display it has no effect

Expected behaviour

Display the target entity field third_party_settings form below the inline settings and save them for the custom view mode like you could in the target entity field.

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024