Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/views/src/DisplayPluginCollection.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
78 } | 78 } |
79 // Catch any plugin exceptions that are thrown. So we can fail nicely if a | 79 // Catch any plugin exceptions that are thrown. So we can fail nicely if a |
80 // display plugin isn't found. | 80 // display plugin isn't found. |
81 catch (PluginException $e) { | 81 catch (PluginException $e) { |
82 $message = $e->getMessage(); | 82 $message = $e->getMessage(); |
83 drupal_set_message(t('@message', ['@message' => $message]), 'warning'); | 83 \Drupal::messenger()->addWarning(t('@message', ['@message' => $message])); |
84 } | 84 } |
85 | 85 |
86 // If no plugin instance has been created, return NULL. | 86 // If no plugin instance has been created, return NULL. |
87 if (empty($this->pluginInstances[$display_id])) { | 87 if (empty($this->pluginInstances[$display_id])) { |
88 return NULL; | 88 return NULL; |