Closed (fixed)
Project:
Guardian
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2018 at 16:59 UTC
Updated:
28 Feb 2019 at 13:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rajeshwari10 commentedComment #3
rajeshwari10 commentedHi,
I have replaced the drupal_set_message with the Messenger Service. Added patch, Please review.
Thanks
Comment #4
tessa bakkerHi Rajeshwari,
Thanks for you work on the patch, here are some points for improvement:
* Update guardian.services.yml with the messenger service.
* Add a dependency for Drupal Core 8.5 in guardian.info.yml, see https://www.drupal.org/node/2000204 for more information.
Comment #5
rajeshwari10 commentedHi Tessa,
Thanks for the Review. I worked on your suggestions. Added the patch. Please review.
Thanks
Comment #6
idebr commented@rajeshwari10 Thanks for working on this issue. I would like to suggest a few minor changes before this is ready to be committed:
This notation seems a little off. Let's use a similar notation as the Search API: #2961537: Increase Core dependency to Drupal 8.5
The doc comment short description should end with a full stop.
Comment #7
tessa bakkerChange of plans: There is a MessengerTrait available in Core. By using the trait, the Messenger doesn't need to be injected anymore.
See: \Drupal\Core\Messenger\MessengerTrait
Comment #8
idebr commentedAttached patch fixes the following remarks:
#6.1 Updated dependency on Drupal 8.5.x in the guardian.info.yml file
#6.2 The property description is no longer applicable because of
#7 Replaced the injected messengerService with the MessengerTrait
Comment #10
tessa bakkerThanks for the patch!