custom/plugins/WbmTagManagerAnalytics/src/WbmTagManagerAnalytics.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Wbm\TagManagerAnalytics;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  5. class WbmTagManagerAnalytics extends Plugin
  6. {
  7.     public function uninstall(UninstallContext $uninstallContext): void
  8.     {
  9.         if (!$uninstallContext->keepUserData()) {
  10.             $this->container->get('Doctrine\DBAL\Connection')->executeStatement(
  11.                 'DROP TABLE `wbm_data_layer_properties`;'
  12.             );
  13.             $this->container->get('Doctrine\DBAL\Connection')->executeStatement(
  14.                 'DROP TABLE `wbm_data_layer_modules`;'
  15.             );
  16.         }
  17.     }
  18. }