Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / src / DisplayPluginCollection.php
index 7c3c736fad97ca76a8b310f44e42a75d512ab2b4..74b69103d666ab7a25eddcddac21bf8e44813779 100644 (file)
@@ -80,7 +80,7 @@ class DisplayPluginCollection extends DefaultLazyPluginCollection {
     // display plugin isn't found.
     catch (PluginException $e) {
       $message = $e->getMessage();
-      drupal_set_message(t('@message', ['@message' => $message]), 'warning');
+      \Drupal::messenger()->addWarning(t('@message', ['@message' => $message]));
     }
 
     // If no plugin instance has been created, return NULL.