Entity Formatters

Categories

Component ID

2568083

Component name

Entity Formatters

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

When referencing entities which may not have view-modes of their own, we need to write custom formatters which in turn actually makes use of the existing formatters and uses them on the loaded entities. For Eg : File Entity Reference Image Formatter created a new formatter which loads the rererenced file entity and then uses the existing image formatter(or similar logic) on it.

This module tries to avoid such scenarios by creating one generic formatter for Entities which will have a setting to select the formatter based on the referenced entity in the display settings form. Thus all this module will be doing is load the entity and then apply the selected field formatter on the loaded entity.