summaryrefslogtreecommitdiffstats
path: root/core/modules/views/src/DisplayPluginCollection.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/src/DisplayPluginCollection.php')
-rw-r--r--core/modules/views/src/DisplayPluginCollection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/views/src/DisplayPluginCollection.php b/core/modules/views/src/DisplayPluginCollection.php
index 7c3c736..74b6910 100644
--- a/core/modules/views/src/DisplayPluginCollection.php
+++ b/core/modules/views/src/DisplayPluginCollection.php
@@ -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.