X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fconfig%2Ftests%2Fconfig_test%2Fsrc%2FConfigTestForm.php;fp=web%2Fcore%2Fmodules%2Fconfig%2Ftests%2Fconfig_test%2Fsrc%2FConfigTestForm.php;h=86e021e38c2cd11ba79c93bb3dcf3841c8c50173;hp=fbc0f9661d5f84875d4c9e1b6a4983517a077435;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/config/tests/config_test/src/ConfigTestForm.php b/web/core/modules/config/tests/config_test/src/ConfigTestForm.php index fbc0f9661..86e021e38 100644 --- a/web/core/modules/config/tests/config_test/src/ConfigTestForm.php +++ b/web/core/modules/config/tests/config_test/src/ConfigTestForm.php @@ -138,10 +138,10 @@ class ConfigTestForm extends EntityForm { $status = $entity->save(); if ($status === SAVED_UPDATED) { - drupal_set_message(format_string('%label configuration has been updated.', ['%label' => $entity->label()])); + $this->messenger()->addStatus(format_string('%label configuration has been updated.', ['%label' => $entity->label()])); } else { - drupal_set_message(format_string('%label configuration has been created.', ['%label' => $entity->label()])); + $this->messenger()->addStatus(format_string('%label configuration has been created.', ['%label' => $entity->label()])); } $form_state->setRedirectUrl($this->entity->urlInfo('collection'));