When trying to customize some native UI, e.g. the node creation workflow, it is a common need to have to change or remove UI messages. If the text just needs to be tweaked, string overrides may be used, although this may have unintended side-effects, since they affect the UI globally. OTOH, if you need to alter the variables appearing in the message, or even removing it altogether possibly depending on some condition, the only ways to achieve this are to either retrieve all messages, change/remove the target one, and add them back or to alter them right before rendering. Both approaches are cumbersome and potentially fragile.
Introduce an easy way to target individual messages and alter/remove them by simply interacting with the messenger service as you do when adding messages in the first place, while retaining the ability to display the same message multiple times.
A possible solution would be to require developers to provide additional metadata besides the message text, e.g. a message provider and a key, like we do for emails. This would allow to target individual messages or even all the messages provided by a module, for instance.
None
None expected, only additions.
None
TBD
Active
11.0 🔥
base system
Enhances developer experience.
Enhances an existing API or introduces a new subsystem. Depending on the size and impact, possibly backportable to earlier major versions.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.