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 / ConfirmFormTestForm.php
index c5d4cef94d53673e64c323ad81d08e4f2cc07610..089661fe4f5ec86767854b2ec08df8d7bfbeeffc 100644 (file)
@@ -68,7 +68,7 @@ class ConfirmFormTestForm extends ConfirmFormBase {
    * {@inheritdoc}
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
-    drupal_set_message($this->t('The ConfirmFormTestForm::submitForm() method was used for this form.'));
+    $this->messenger()->addStatus($this->t('The ConfirmFormTestForm::submitForm() method was used for this form.'));
     $form_state->setRedirect('<front>');
   }