Add Label field formatter

Created on 22 January 2018, almost 7 years ago
Updated 9 May 2023, over 1 year ago

Currently, View Reference Field only provides the rendered view field formatter. When using with Paragraph experimental form display in Preview mode, the view is always rendered in the backend. It would be better if View Reference has a Label field formatter similar to other entity reference fields.

✨ Feature request
Status

Needs review

Version

2.0

Component

User interface

Created by

πŸ‡¦πŸ‡ΊAustralia sonnykt Melbourne, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

  • πŸ‡§πŸ‡ͺBelgium samuhe

    Seems like patch in 11 is working correctly. Thank you for the patch.

  • First commit to issue fork.
  • Pipeline finished with Failed
    about 19 hours ago
    Total: 271s
    #372784
  • πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

    Fixing PHPCS issues:

    FILE: ...e-2938433/src/Plugin/Field/FieldFormatter/ViewsReferenceLabelFormatter.php
    --------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     72 | ERROR | [x] There should be no white space after an opening "["
        |       |     (Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace)
     72 | ERROR | [x] There should be no white space before a closing "]"
        |       |     (Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace)
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    Time: 399ms; Memory: 8MB
    PHP CODE SNIFFER REPORT SUMMARY
    --------------------------------------------------------------------------------
    FILE                                                            ERRORS  WARNINGS
    --------------------------------------------------------------------------------
    ...lugin/Field/FieldFormatter/ViewsReferenceLabelFormatter.php  2       0
    --------------------------------------------------------------------------------
    A TOTAL OF 2 ERRORS AND 0 WARNINGS WERE FOUND IN 29 FILES
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX 2 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    PHP CODE SNIFFER VIOLATION SOURCE SUMMARY
    ----------------------------------------------------------------------
        SOURCE                                                       COUNT
    ----------------------------------------------------------------------
    [x] Drupal.WhiteSpace.CloseBracketSpacing.ClosingWhitespace      1
    [x] Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace       1
    ----------------------------------------------------------------------
    A TOTAL OF 2 SNIFF VIOLATIONS WERE FOUND IN 2 SOURCES
    ----------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SOURCES AUTOMATICALLY (2 VIOLATIONS IN TOTAL)
    ----------------------------------------------------------------------
    
  • Pipeline finished with Failed
    about 19 hours ago
    Total: 273s
    #372789
  • πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

    Adding static patch with updates.

Production build 0.71.5 2024