custom/plugins/CoeHidePriceForCustomerGroup/src/CoeHidePriceForCustomerGroup.php line 14

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace CoeHidePriceForCustomerGroup;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  5. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  6. /**
  7.  * Class CoeHidePriceForCustomerGroup
  8.  * @package CoeEmailSendCopy
  9.  * @author Jeffry Block <jeffry.block@codeenterprise.de>
  10.  */
  11. class CoeHidePriceForCustomerGroup extends Plugin {
  12.     /**
  13.      * @param InstallContext $context
  14.      * @author Jeffry Block <jeffry.block@codeenterprise.de>
  15.      */
  16.     public function install(InstallContext $context): void
  17.     {
  18.         parent::install($context);
  19.     }
  20.     /**
  21.      * @param UninstallContext $context
  22.      * @author Jeffry Block <jeffry.block@codeenterprise.de>
  23.      */
  24.     public function uninstall(UninstallContext $context): void
  25.     {
  26.         parent::uninstall($context);
  27.         if ($context->keepUserData()) {
  28.             return;
  29.         }
  30.     }
  31. }