Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / shortcut / src / Form / SetCustomize.php
index 6c97577829365240f8da14f8223e4fca1f8fc07d..027f023617b7297c405c7189d991922dde430b32 100644 (file)
@@ -8,6 +8,8 @@ use Drupal\Core\Render\Element;
 
 /**
  * Builds the shortcut set customize form.
+ *
+ * @internal
  */
 class SetCustomize extends EntityForm {
 
@@ -104,7 +106,7 @@ class SetCustomize extends EntityForm {
       $shortcut->setWeight($weight);
       $shortcut->save();
     }
-    drupal_set_message(t('The shortcut set has been updated.'));
+    $this->messenger()->addStatus($this->t('The shortcut set has been updated.'));
   }
 
 }