summaryrefslogtreecommitdiffstats
path: root/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php')
-rw-r--r--core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php b/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
index 9911f61..c6d9137 100644
--- a/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
+++ b/core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php
@@ -132,7 +132,7 @@ class ViewsSelection extends SelectionPluginBase implements ContainerFactoryPlug
// Check that the view is valid and the display still exists.
$this->view = Views::getView($view_name);
if (!$this->view || !$this->view->access($display_name)) {
- drupal_set_message(t('The reference view %view_name cannot be found.', ['%view_name' => $view_name]), 'warning');
+ \Drupal::messenger()->addWarning(t('The reference view %view_name cannot be found.', ['%view_name' => $view_name]));
return FALSE;
}
$this->view->setDisplay($display_name);