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
Remove all the occurrence of drupal_set_message() is deprecated
Proposed resolution
Drupal 8.5.x has introduced a new messenger service.
recently drupal_set_message() has been deprecated
#2774931
Comment | File | Size | Author |
---|---|---|---|
#4 | devel-3032580-4.patch | 10.47 KB | lussoluca |
#2 | removed_deprecated_drupal_set_message-3032580-2.patch | 9.44 KB | akshay_d |
Comments
Comment #2
akshay_dRemoved all the occurrence of drupal_set_message()
Comment #3
akshay_dplease review
Comment #4
lussolucaWe also need to use MessengerTrait where not in ControllerBase or FormBase subclasses
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedComment #8
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedAdded parent