Field Formatter for Views

Categories

Component ID

2690957

Component name

Field Formatter for Views

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

A field formatter for entity reference fields targetting views that embeds the view when entity is viewed. 2 arguments are passed into the view as contextual filters, 1.) Entity id of the parent entity and 2.) a custom string value.

Inspired by and referenced plugin code from https://www.drupal.org/project/views_field_formatter

Use cases

Helpful if you are using the paragraphs module and want to define a paragraph type referencing a view.

Limitations/TODO

Right now the view display rendered defaults to the default display.

How does this differ from views_field_formatter?

While views_field_formatter defines the view in field instance settings, this module lets user define the view in an entity reference field.