Problem/Motivation
Remove all the occurrence of drupal_set_message() is deprecated
Proposed resolution
Drupal 8.5.x has introduced a new messenger service.
I replaced drupal_set_message() with Drupal Messenger service.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | remove_drupal_set_message-2.patch | 4 KB | naheemsays |
Comments
Comment #2
sergiu stici commentedComment #3
sergiu stici commentedComment #4
berdirall forms have the Messenger trait now, so we can just use $this->messenger() and remove all this.
Comment #5
naheemsays commentedComment #6
naheemsays commentedComment #7
naheemsays commentedReplaced an addMessage with an addError.
Comment #8
berdirThanks, straight-forward now.