X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FForm%2FModulesUninstallConfirmForm.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FForm%2FModulesUninstallConfirmForm.php;h=a9783a908fca499dfb42bdf35f63e376ae9b64d8;hp=f55f0d69ec5a5b84329560cf6b4910bd4d59ef9a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/src/Form/ModulesUninstallConfirmForm.php b/web/core/modules/system/src/Form/ModulesUninstallConfirmForm.php index f55f0d69e..a9783a908 100644 --- a/web/core/modules/system/src/Form/ModulesUninstallConfirmForm.php +++ b/web/core/modules/system/src/Form/ModulesUninstallConfirmForm.php @@ -131,7 +131,7 @@ class ModulesUninstallConfirmForm extends ConfirmFormBase { // Prevent this page from showing when the module list is empty. if (empty($this->modules)) { - drupal_set_message($this->t('The selected modules could not be uninstalled, either due to a website problem or due to the uninstall confirmation form timing out. Please try again.'), 'error'); + $this->messenger()->addError($this->t('The selected modules could not be uninstalled, either due to a website problem or due to the uninstall confirmation form timing out. Please try again.')); return $this->redirect('system.modules_uninstall'); } @@ -161,7 +161,7 @@ class ModulesUninstallConfirmForm extends ConfirmFormBase { // Uninstall the modules. $this->moduleInstaller->uninstall($this->modules); - drupal_set_message($this->t('The selected modules have been uninstalled.')); + $this->messenger()->addStatus($this->t('The selected modules have been uninstalled.')); $form_state->setRedirectUrl($this->getCancelUrl()); }