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 / FormTestGetForm.php
index a032771e9c41d478bec9dcbf2e683d83344bab36..bf9ce60dcf6c15ce591f15bbd7a6aec9169b8bac 100644 (file)
@@ -35,7 +35,7 @@ class FormTestGetForm extends FormBase {
    * {@inheritdoc}
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
-    drupal_set_message('The form_test_get_form form has been submitted successfully.');
+    $this->messenger()->addStatus('The form_test_get_form form has been submitted successfully.');
   }
 
 }