Hey, Keith! I needed a field formatter that doesn't actually display the rendered View output, but just shows the configured selections (view name, display, arguments) from each viewfield item.

This is particularly useful for Paragraphs; in the Paragraph entity "Preview" view mode, I almost never want to see the fully rendered view, but I do still want to be able to tell which view and display has been selected for that Paragraph.

Comments

Les Lim created an issue. See original summary.

les lim’s picture

Status: Active » Needs review
StatusFileSize
new1.65 KB

Patch attached.

les lim’s picture

StatusFileSize
new1.97 KB

Updated the patch to handle the case where Viewfield is referencing a deleted view display.

genjohnson’s picture

In case anyone comes here looking for a similar solution for Drupal 7, see #2984973: Add a field formatter to show only title, display name, arguments.

  • jerdavis committed 1ed7e21 on 8.x-3.x
    Issue #2875920 by Les Lim, jerdavis: Add a formatter for showing only...
jerdavis’s picture

Status: Needs review » Fixed

Added! Thanks Les!

Status: Fixed » Closed (fixed)

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