custom/plugins/SwpCategoryLayoutToChildsSix/src/SwpCategoryLayoutToChildsSix.php line 23

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /**
  3.  * Shopware
  4.  * Copyright © 2021
  5.  *
  6.  * @category   Shopware
  7.  * @package    SwpCategoryLayoutToChildsSix
  8.  * @subpackage SwpCategoryLayoutToChildsSix.php
  9.  *
  10.  * @copyright  2021 Iguana-Labs GmbH
  11.  * @author     Module Factory <info at module-factory.com>
  12.  * @license    https://www.module-factory.com/eula
  13.  */
  14. namespace Swp\CategoryLayoutToChildsSix;
  15. use Shopware\Core\Framework\Plugin;
  16. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  17. use Shopware\Core\Framework\Plugin\Context\DeactivateContext;
  18. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  19. use Shopware\Core\Framework\Plugin\Context\UninstallContext;
  20. class SwpCategoryLayoutToChildsSix extends Plugin
  21. {
  22.     /**
  23.      *
  24.      * @param InstallContext $installContext
  25.      */
  26.     public function install(InstallContext $installContext): void
  27.     {
  28.         parent::install($installContext);
  29.     }
  30.     /**
  31.      *
  32.      * @param UninstallContext $uninstallContext
  33.      */
  34.     public function uninstall(UninstallContext $uninstallContext): void
  35.     {
  36.         parent::uninstall($uninstallContext);
  37.         if ($uninstallContext->keepUserData()) {
  38.             return;
  39.         }
  40.     }
  41.     /**
  42.      *
  43.      * @param ActivateContext $activateContext
  44.      */
  45.     public function activate(ActivateContext $activateContext): void
  46.     {
  47.         parent::activate($activateContext);
  48.     }
  49.     /**
  50.      *
  51.      * @param DeactivateContext $deactivateContext
  52.      */
  53.     public function deactivate(DeactivateContext $deactivateContext): void
  54.     {
  55.         parent::deactivate($deactivateContext);
  56.     }
  57. }