X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FForm%2FPrepareModulesEntityUninstallForm.php;h=8531653247b51cbd0212f67a6f08a0543bf4963b;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=858364fe407993efbb016559a05b190ebfe1a5de;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php b/web/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php index 858364fe4..853165324 100644 --- a/web/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php +++ b/web/core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php @@ -12,6 +12,8 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * Provides a form removing module content entities data before uninstallation. + * + * @internal */ class PrepareModulesEntityUninstallForm extends ConfirmFormBase { @@ -157,7 +159,7 @@ class PrepareModulesEntityUninstallForm extends ConfirmFormBase { '@entity_type_singular' => $entity_type->getSingularLabel(), '@entity_type_plural' => $entity_type->getPluralLabel(), ] - ) + ), ]; } @@ -225,7 +227,7 @@ class PrepareModulesEntityUninstallForm extends ConfirmFormBase { $storage->delete($entities); } // Sometimes deletes cause secondary deletes. For example, deleting a - // taxonomy term can cause it's children to be be deleted too. + // taxonomy term can cause its children to be be deleted too. $context['sandbox']['progress'] = $context['sandbox']['max'] - $storage->getQuery()->count()->execute(); // Inform the batch engine that we are not finished and provide an @@ -248,7 +250,7 @@ class PrepareModulesEntityUninstallForm extends ConfirmFormBase { */ public static function moduleBatchFinished($success, $results, $operations) { $entity_type_plural = \Drupal::entityTypeManager()->getDefinition($results['entity_type_id'])->getPluralLabel(); - drupal_set_message(t('All @entity_type_plural have been deleted.', ['@entity_type_plural' => $entity_type_plural])); + \Drupal::messenger()->addStatus(t('All @entity_type_plural have been deleted.', ['@entity_type_plural' => $entity_type_plural])); return new RedirectResponse(Url::fromRoute('system.modules_uninstall')->setAbsolute()->toString()); }