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
See #2566503: [meta] Replace remaining !placeholder for Non-URL HTML outputs only
modules/config_translation/config_translation.api.php: 'title' => t('!label field'),
Proposed resolution
Remaining tasks
Agree that removing HTML support makes sense.
User interface changes
None
API changes
Date format strings no longer support adding HTML using the \ escape character.
Data model changes
None
Beta phase evaluation
Issue category | Bug because at the moment date formats support HTML but it is escaped |
---|---|
Issue priority | Major because part of the critical to remove !placeholder |
Disruption | Disruptive for existing sites that are adding HTML to date formats. If HTML is required in a formatted date then the site should implement a custom field formatter to do this. |
Comment | File | Size | Author |
---|---|---|---|
#8 | 2571941-8.patch | 773 bytes | swentel |
#2 | 2571941-2.patch | 779 bytes | swentel |
Comments
Comment #2
swentel CreditAttribution: swentel commentedSo should we just remove the ! here in the example ?
Comment #3
Ayesh CreditAttribution: Ayesh commentedIsn't this
!label
placeholder supposed to be replaced with@label
instead?Comment #4
Ayesh CreditAttribution: Ayesh commentedComment #5
swentel CreditAttribution: swentel commentedWell, then we need something that replaces the placeholder, it's a bit weird now no ?
Comment #6
Ayesh CreditAttribution: Ayesh commentedSorry you are absolutely right.
Comment #7
dawehnerThis was a copy of \config_translation_config_translation_info ... which was removed, let's remove this from the example.
Comment #8
swentel CreditAttribution: swentel commentedReplaced with 'Title' - makes more sense to me.
Comment #9
dawehnerThank you!
Comment #10
alexpottCommitted 156e903 and pushed to 8.0.x. Thanks!
Comment #14
nevergone CreditAttribution: nevergone commentedAlready committed.
Fixed.