Closed (fixed)
Project:
Entity Browser
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Mar 2019 at 13:46 UTC
Updated:
3 Apr 2019 at 13:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
oknateComment #3
primsi commentedThanks. Maybe we could use the messenger service, given that it's already available in entity forms.
Comment #4
oknateHere are three patches that use the messenger service.
1) First one just uses messenger trait, which will call \Drupal::messenger()
2) Second one injects messenger service into the two forms
3) Third one replaces drupal_set_message() throughout the entity_browser module.
Comment #6
oknateFixing v3.
Comment #7
oknateReroll of #6 after #3033289: Remove unused constructor argument in EntityReferenceBrowserWidget
Comment #8
oknateAdding test coverage.
Comment #9
oknateReroll
Comment #10
primsi commentedSeems unrelated?
Apart from that seems quite ok to me. Tested this manually, worked quite alright.
Comment #11
oknateUpdated.
Comment #12
oknateRunning test against 8.x-1.x branch.
Comment #13
primsi commentedComment #16
oknateCommitted. Thanks for the idea/review, Primsi.
Comment #17
oknateComment #18
oknateLooks like I introduced a minor bug:
https://www.drupal.org/pift-ci-job/1234548
FormBase already has MessengerTrait.
Comment #19
oknateComment #20
primsi commentedGood catch.
Comment #23
oknate