Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The List-handler of EntityFieldHandlerHelper
doesn't provide a posibility to generate a html-list.
Would be nice to have such an option - especially to build views.
Proposed resolution
Add such a handler. Please see the attached patch for a possible solution.
Remaining tasks
Review patch.
User interface changes
New option "Output values as list" in "List-handling".
New setting "List type" if "Output values as list" is selected.
API changes
none.
Comments
Comment #1
das-peter CreditAttribution: das-peter commentedAdded Views sprint tag.
Comment #2
fubhy CreditAttribution: fubhy commentedThere are 2 whitespace characters in the 'items' line (behind the arrow).
Other than that it looks okay. Just need to see what fago thinks about it. :)
Comment #3
das-peter CreditAttribution: das-peter commentedHere we go, re-rolled and fixed also other coding standard violations in the existing code.
Comment #5
das-peter CreditAttribution: das-peter commented#3: entity-EntityFieldHandlerHelper-add-html-list-output.patch-1352454-3.patch queued for re-testing.
Comment #6
fagoSry for the late review.
The first line actually may be longer than 80 chars, but should not break. So let's keep it as it was.
Except for that, patch looked good. Committed it, thanks.