Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / Form / FormTestVerticalTabsAccessForm.php
index 1b343fccc932d32d3bf3dfdb2af1a7d0e4f879c3..c2d062a64f704551d48b826680d7de4af6e830dc 100644 (file)
@@ -130,7 +130,7 @@ class FormTestVerticalTabsAccessForm extends FormBase {
    * {@inheritdoc}
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
-    drupal_set_message(t('The form submitted correctly.'));
+    $this->messenger()->addStatus(t('The form submitted correctly.'));
   }
 
 }