Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / user / src / Form / UserPermissionsForm.php
index 7d3adaa5dc268d54cd029e58a4ca56a203c195c3..0f7f0378daa0093c18adb142c194933d9ff21dab 100644 (file)
@@ -216,7 +216,7 @@ class UserPermissionsForm extends FormBase {
       user_role_change_permissions($role_name, (array) $form_state->getValue($role_name));
     }
 
-    drupal_set_message($this->t('The changes have been saved.'));
+    $this->messenger()->addStatus($this->t('The changes have been saved.'));
   }
 
 }