Problem/Motivation

There are currently no formatter options for the Typed Resource Object fields. Whilst they still will be displayed as text fields if enabled for display, the dropdown on the Manage Display form for entity

It's also possible this is leading to the value being displayed sometimes when this is explicitly disallowed by the Manage Display configuration, though I have yet to explicitly prove this.

Proposed resolution

Implement hook_field_formatter_info_alter() to allow the field formatter with ID text_default to be used for fields of type typed_resource_object

Remaining tasks

None

User interface changes

Manage Display now shows Default in field formatter for this field type rather than an empty entry.

API changes

None.

Data model changes

None

Release notes snippet

Comments

Eli-T created an issue. See original summary.

eli-t’s picture

Status: Active » Needs review
StatusFileSize
new606 bytes
jkswoods’s picture

Looks good! Can confirm the formatter is set to default in the display settings and looks okay when viewed. I haven't managed to reproduce the bug explained in the issue description so can't say for definite whether it fixes the issue or not. Having said that, it'll be good to get this committed and have some form of a default formatter for the field type.

jkswoods’s picture

Status: Needs review » Reviewed & tested by the community

  • Eli-T authored 50512e4 on 8.x-1.x
    Issue #3095182 by Eli-T: Allow use the existing text_default field...
eli-t’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the review @jkswoods - committed and pushed to 8.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.