We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73ab9e0 commit d7155c4Copy full SHA for d7155c4
NetzhirschRemoveNoteAdvanced.php
@@ -7,6 +7,7 @@
7
use Shopware\Bundle\CookieBundle\CookieGroupCollection;
8
use Shopware\Bundle\CookieBundle\Structs\CookieGroupStruct;
9
use Shopware\Components\Plugin;
10
+use Shopware\Components\Plugin\Context\UninstallContext;
11
12
class NetzhirschRemoveNoteAdvanced extends Plugin
13
{
@@ -61,4 +62,11 @@ private function getPluginDir() {
61
62
63
return $pluginDir;
64
}
65
+
66
+ public function uninstall(UninstallContext $context)
67
+ {
68
+ if ($context->getPlugin()->getActive()) {
69
+ $context->scheduleClearCache(UninstallContext::CACHE_LIST_DEFAULT);
70
+ }
71
72
0 commit comments