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

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Tmms\TopBarNotifications;
  4. use Shopware\Core\Framework\Plugin;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. class TmmsTopBarNotifications extends Plugin
  7. {
  8.     const PLUGIN_CONFIG_VARS = [
  9.         'topBarNotificationsMarginUnit',
  10.         'topBarNotificationsMarginTop',
  11.         'topBarNotificationsMarginBottom',
  12.         'topBarNotificationsPaddingUnit',
  13.         'topBarNotificationsPaddingTop',
  14.         'topBarNotificationsPaddingBottom',
  15.         'topBarNotificationsShadow',
  16.         'topBarNotificationsArea1IconWidth',
  17.         'topBarNotificationsArea1IconHeight',
  18.         'topBarNotificationsArea1MarginUnit',
  19.         'topBarNotificationsArea1MarginArea',
  20.         'topBarNotificationsArea1MarginIcon',
  21.         'topBarNotificationsArea1MarginLeftContent',
  22.         'topBarNotificationsArea1MarginRightContent',
  23.         'topBarNotificationsArea1FontSize',
  24.         'topBarNotificationsArea2IconWidth',
  25.         'topBarNotificationsArea2IconHeight',
  26.         'topBarNotificationsArea2MarginUnit',
  27.         'topBarNotificationsArea2MarginArea',
  28.         'topBarNotificationsArea2MarginIcon',
  29.         'topBarNotificationsArea2MarginLeftContent',
  30.         'topBarNotificationsArea2MarginRightContent',
  31.         'topBarNotificationsArea2FontSize',
  32.         'topBarNotificationsArea3IconWidth',
  33.         'topBarNotificationsArea3IconHeight',
  34.         'topBarNotificationsArea3MarginUnit',
  35.         'topBarNotificationsArea3MarginArea',
  36.         'topBarNotificationsArea3MarginIcon',
  37.         'topBarNotificationsArea3MarginLeftContent',
  38.         'topBarNotificationsArea3MarginRightContent',
  39.         'topBarNotificationsArea3FontSize',
  40.         'topBarNotificationsArea4IconWidth',
  41.         'topBarNotificationsArea4IconHeight',
  42.         'topBarNotificationsArea4MarginUnit',
  43.         'topBarNotificationsArea4MarginArea',
  44.         'topBarNotificationsArea4MarginIcon',
  45.         'topBarNotificationsArea4MarginLeftContent',
  46.         'topBarNotificationsArea4MarginRightContent',
  47.         'topBarNotificationsArea4FontSize',
  48.     ];
  49.     public function build(ContainerBuilder $container): void
  50.     {
  51.         parent::build($container);
  52.         $container->setParameter(
  53.             'tmms_topbarnotifications_domain',
  54.             $this->getName() . '.config.'
  55.         );
  56.     }
  57. }