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 drupal_set_message()
function has been deprecated, see the change notice at https://www.drupal.org/node/2774931
Proposed resolution
Replace the deprecated drupal_set_message()
with the Messenger service.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | 3047680-4.patch | 9.15 KB | amit.drupal |
#2 | removing_deprecated_code-3047680-2.patch | 3.37 KB | Akanksha92 |
Comments
Comment #2
Akanksha92 CreditAttribution: Akanksha92 commentedReplaced all the deprecated drupal_set_message() with the Messenger service. Please review.
Comment #4
amit.drupal CreditAttribution: amit.drupal as a volunteer and at Valuebound for Valuebound commentedUpdate Patch #2
Comment #5
borisson_The latest patch here doesn't seem to introduce new DI where it's possible, it also seems to be a part of #3042654. This patch is a lot smaller though, because the other patch does more.
I think this is a good start of getting to d9 ready though.
Comment #7
borisson_