Reviewed & tested by the community
Project:
Simple Cool Message
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
6 Dec 2019 at 19:54 UTC
Updated:
9 Dec 2019 at 20:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
agrochal commentedI've actually removed deprecated code and replaced it with Messenger service. I attach .patch file.
Comment #3
agrochal commentedComment #4
agrochal commentedI’ll replace messenger service into dependency injection.
Comment #5
agrochal commentedOkay, I've created the patch which replaces drupal_set_message with messenger service which is added in dependency injection.
Comment #6
agrochal commentedComment #7
maliknaik commented@agrochal, ConfigFormBase uses MessengerTrait, so you can directly use
$this->messenger()->addMessage(), and there is no need for Dependency injection here.https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21ConfigFormBase.php/class/ConfigFormBase/8.8.x
Comment #8
maliknaik commentedComment #9
agrochal commentedComment #10
agrochal commentedOkay, here's new patch.
Comment #11
agrochal commentedComment #12
maliknaik commentedThe patch in #10 looks fine.
Drupal check result before applying the patch:
Drupal check result after applying the patch: