custom/plugins/WebcellentInternalLinks/src/WebcellentInternalLinks.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Webcellent\InternalLinks;
  3. use Shopware\Core\Framework\Plugin;
  4. use Doctrine\DBAL\Connection;
  5. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  6. class WebcellentInternalLinks extends Plugin
  7. {
  8.     public function uninstall(UninstallContext $uninstallContext): void {
  9.         parent::uninstall($uninstallContext);
  10.         if ($uninstallContext->keepUserData()){
  11.             return;
  12.         }
  13.         $connection $this->container->get(Connection::class);
  14.         $connection->executeStatement('drop table if exists `webcellent_internal_links` ');
  15.     }
  16. }