Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / src / Form / ModulesListExperimentalConfirmForm.php
index 5586ce70ba7e594c3b8e5d00a0e108425bc1635b..2f410f2785571db7cad36091b337e408c48d8c86 100644 (file)
@@ -27,7 +27,7 @@ class ModulesListExperimentalConfirmForm extends ModulesListConfirmForm {
    * {@inheritdoc}
    */
   protected function buildMessageList() {
-    drupal_set_message($this->t('<a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.', [':url' => 'https://www.drupal.org/core/experimental']), 'warning');
+    $this->messenger()->addWarning($this->t('<a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.', [':url' => 'https://www.drupal.org/core/experimental']));
 
     $items = parent::buildMessageList();
     // Add the list of experimental modules after any other messages.