We can use \Drupal::messenger()->addMessage instead of drupal_set_message

Comments

pifagor created an issue. See original summary.

pifagor’s picture

Status: Active » Needs review
StatusFileSize
new5.7 KB
mxh’s picture

guilhermevp’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new102.89 KB

Patch applies cleanly and works as intended. However, I believe a better patch would remove \Drupal calls from classes with Dependency Injection.

RTBC.1

  • shagel committed 2c754de on 8.x-1.x
    Applyed patches #3109400 #3101208 #3182435
    

mxh credited shagel.

mxh’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.