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.
When adding field to any content type with Field ui then it doesn't display the help text allowed tags well formatted.
Problem/Motivation
1. Add text field to any content type by going Manage fields tab.
2. Under Help text allowed tags help text is not well formatted.
Proposed resolution
None
Remaining tasks
None
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#1 | field_ui-help_text_formatting-2339947-1.patch | 1013 bytes | msankhala |
field setting help text formatting issue.png | 50.49 KB | msankhala |
Comments
Comment #1
msankhala CreditAttribution: msankhala commentedAfter digging into code i found FieldInstanceEditForm class under field ui module src/From/FieldInstanceEditForm.php at line 130.
issue with string concatenation sequence and one unnecessary call to
t()
function. Making whole description string in onet()
call solve this problem. Adding patch.Comment #2
swentel CreditAttribution: swentel commentedInteresting, but there's an existing issue for that, see #2309929: HTML double-escaping in field forms - there's some weirdness with twig, but if your patch works, you can upload it there as well, thanks!