Use of unsupported exclamation mark placeholders

Created on 28 December 2021, almost 3 years ago
Updated 6 February 2024, 10 months ago

Problem/Motivation

Error messages use unsupported exclamation mark placeholders. `dt()` functions should no longer use `!placeholder`, as noted in this change record: https://www.drupal.org/node/2575819 β†’ . A similar issue was reported for the 'name' module in https://www.drupal.org/project/name/issues/2715203 β†’

Steps to reproduce

Trigger a failing rollback to get an error message: "User warning: Invalid placeholder (!name) with string: "Rollback of !name migration failed." in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 241 of core/lib/Drupal/Component/Render/FormattableMarkup.php). "

Proposed resolution

As suggested in the change record, swap `!placeholders` for `@placeholders`.

Remaining tasks

Upload patch.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

RTBC

Version

5.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom lazysoundsystem

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

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024