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. use messenger service to remove deprecation
#2774931
Comment | File | Size | Author |
---|---|---|---|
#16 | linkback-3034734-16.patch | 11.38 KB | daiwik.addweb |
| |||
#13 | deprecated_drupal_setmessege_removed-3034734-13.patch | 11.38 KB | akshay_d |
#11 | deprecated_drupal_setmessege_removed-3034734-11.patch | 12.08 KB | akshay_d |
#9 | interdiff_5-9.txt | 1.54 KB | akshay_d |
#9 | deprecated_drupal_setmessege_removed-3034734-9.patch | 11.14 KB | akshay_d |
|
Comments
Comment #2
akshay_dremoved deprecated drupal_set_message() in submodule linkback_webmention please review
Comment #3
aleix CreditAttribution: aleix commentedHi and thanks for the patch. It make sense, despite that it makes mandatory the use of system >8.5, but anyway this is recommended (as <8,4 is not supported).
But as we use dependency injection where it can be used, the use of '@messenger' service must be injected.
Could you change it? (if not I'll do some day)
Comment #4
akshay_d@aleix I will make the changes soon
Comment #5
akshay_ddependency injection used, please review
Comment #6
aleix CreditAttribution: aleix commentedOk, thank's but @messenger it's not included in https://cgit.drupalcode.org/linkback/tree/linkback_webmention/linkback_w... .
Comment #7
aleix CreditAttribution: aleix commentedThe same as pingback submodule #3034744: drupal_set_message() is deprecated in submodule linkback_pingback must be done. If you need help tell me please.
Comment #8
akshay_d@aleix thanks i will do the changes soon
Comment #9
akshay_d@aleix updated the services.yml please review.
Comment #10
aleix CreditAttribution: aleix commentedHi again, everything ok but for form plugin. When using dependency injection in Form creation, it needs to override the create static function to provide the new dependency from container, take a look at:
https://www.drupal.org/docs/8/api/services-and-dependency-injection/depe...
I cannot create the interdiff showing it now sorry... can you refactor it?
Comment #11
akshay_dupdated static function for the new dependency container, please review
Comment #13
akshay_dupdated patch please review
Comment #15
aleix CreditAttribution: aleix commentedPatch is not applying with last dev, please could you refactor it?
Comment #16
daiwik.addweb CreditAttribution: daiwik.addweb at AddWeb Solution Pvt. Ltd. commented@aleix, Please find below attached Rerolled patch, as #13 didn't apply to check. Kindly review it & let me know your views on the same.
Thanks!.
Comment #18
aleix CreditAttribution: aleix commentedGreat! thank's a lot!
Comment #19
aleix CreditAttribution: aleix commented