custom/plugins/TraumPlugin/src/TraumPlugin.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace TraumPlugin;
  3. use Shopware\Core\Framework\Plugin;
  4. use Shopware\Core\System\CustomField\CustomFieldTypes;
  5. use Shopware\Core\Framework\Plugin\Context\InstallContext;
  6. use Shopware\Core\Framework\Plugin\Context\UpdateContext;
  7. //use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
  8. class TraumPlugin extends Plugin
  9. {
  10.     public const TRAUM_CF_PDF 'pdf_file';
  11.     public const TRAUM_CF_PDF_NAME 'pdf_file_name';
  12.     public const TRAUM_CFS 'custom_traum_default';
  13.     public const TRAUM_CFS_ID '8c3e7692ef10471c8d86df1e02d5dc61';
  14.     public const TRAUM_CF_PDF_LABEL 'PDF';
  15.     public const TRAUM_CF_PDF_NAME_LABEL 'PDF-Name';
  16.     public const CUSTOM_FIELDS = [
  17.         [
  18.             'name' => self::TRAUM_CFS,
  19.             'id'   => self::TRAUM_CFS_ID,
  20.             'customFields' => [
  21.                 [
  22.                     'name'   => self::TRAUM_CFS '_show_sofa_hint' ,
  23.                     'type'   => CustomFieldTypes::BOOL,
  24.                     'config' => [
  25.                         'label' => [
  26.                             'en-GB' =>  'Hinweis zu Stoffen/Leder bei Sofas anzeigen',
  27.                             'de-DE' =>  'Hinweis zu Stoffen/Leder bei Sofas anzeigen',
  28.                         ],
  29.                         'componentName' => "sw-field",
  30.                         'customFieldType' => "switch",
  31.                         'customFieldPosition' => 7
  32.                     ],
  33.                 ],
  34.                 [
  35.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF,
  36.                     'type'   => CustomFieldTypes::TEXT,
  37.                     'config' => [
  38.                         'label' => [
  39.                             'en-GB' =>  self::TRAUM_CF_PDF_LABEL,
  40.                             'de-DE' =>  self::TRAUM_CF_PDF_LABEL,
  41.                         ],
  42.                         'componentName' => "sw-media-field",
  43.                         'customFieldType' => "media",
  44.                         'customFieldPosition' => 8
  45.                     ],
  46.                 ],
  47.                 [
  48.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME,
  49.                     'type'   => CustomFieldTypes::TEXT,
  50.                     'config' => [
  51.                         'label' => [
  52.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL,
  53.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL,
  54.                         ],
  55.                         'componentName' => "sw-field",
  56.                         'customFieldType' => "text",
  57.                         'customFieldPosition' => 9
  58.                     ],
  59.                 ],
  60.                 [
  61.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '1',
  62.                     'type'   => CustomFieldTypes::TEXT,
  63.                     'config' => [
  64.                         'label' => [
  65.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '1',
  66.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '1',
  67.                         ],
  68.                         'componentName' => "sw-media-field",
  69.                         'customFieldType' => "media",
  70.                         'customFieldPosition' => 10
  71.                     ],
  72.                 ],
  73.                 [
  74.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '1',
  75.                     'type'   => CustomFieldTypes::TEXT,
  76.                     'config' => [
  77.                         'label' => [
  78.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '1',
  79.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '1',
  80.                         ],
  81.                         'componentName' => "sw-field",
  82.                         'customFieldType' => "text",
  83.                         'customFieldPosition' => 11
  84.                     ]
  85.                 ],
  86.                 [
  87.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '2',
  88.                     'type'   => CustomFieldTypes::TEXT,
  89.                     'config' => [
  90.                         'label' => [
  91.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '2',
  92.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '2',
  93.                         ],
  94.                         'componentName' => "sw-media-field",
  95.                         'customFieldType' => "media",
  96.                         'customFieldPosition' => 12
  97.                     ],
  98.                 ],
  99.                 [
  100.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '2',
  101.                     'type'   => CustomFieldTypes::TEXT,
  102.                     'config' => [
  103.                         'label' => [
  104.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '2',
  105.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '2',
  106.                         ],
  107.                         'componentName' => "sw-field",
  108.                         'customFieldType' => "text",
  109.                         'customFieldPosition' => 13
  110.                     ]
  111.                 ],
  112.                 [
  113.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '3',
  114.                     'type'   => CustomFieldTypes::TEXT,
  115.                     'config' => [
  116.                         'label' => [
  117.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '3',
  118.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '3',
  119.                         ],
  120.                         'componentName' => "sw-media-field",
  121.                         'customFieldType' => "media",
  122.                         'customFieldPosition' => 14
  123.                     ],
  124.                 ],
  125.                 [
  126.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '3',
  127.                     'type'   => CustomFieldTypes::TEXT,
  128.                     'config' => [
  129.                         'label' => [
  130.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '3',
  131.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '3',
  132.                         ],
  133.                         'componentName' => "sw-field",
  134.                         'customFieldType' => "text",
  135.                         'customFieldPosition' => 15
  136.                     ]
  137.                 ],
  138.                 [
  139.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '4',
  140.                     'type'   => CustomFieldTypes::TEXT,
  141.                     'config' => [
  142.                         'label' => [
  143.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '4',
  144.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '4',
  145.                         ],
  146.                         'componentName' => "sw-media-field",
  147.                         'customFieldType' => "media",
  148.                         'customFieldPosition' => 16
  149.                     ],
  150.                 ],
  151.                 [
  152.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '4',
  153.                     'type'   => CustomFieldTypes::TEXT,
  154.                     'config' => [
  155.                         'label' => [
  156.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '4',
  157.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '4',
  158.                         ],
  159.                         'componentName' => "sw-field",
  160.                         'customFieldType' => "text",
  161.                         'customFieldPosition' => 17
  162.                     ]
  163.                 ],
  164.                 [
  165.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '5',
  166.                     'type'   => CustomFieldTypes::TEXT,
  167.                     'config' => [
  168.                         'label' => [
  169.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '5',
  170.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '5',
  171.                         ],
  172.                         'componentName' => "sw-media-field",
  173.                         'customFieldType' => "media",
  174.                         'customFieldPosition' => 18
  175.                     ],
  176.                 ],
  177.                 [
  178.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '5',
  179.                     'type'   => CustomFieldTypes::TEXT,
  180.                     'config' => [
  181.                         'label' => [
  182.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '5',
  183.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '5',
  184.                         ],
  185.                         'componentName' => "sw-field",
  186.                         'customFieldType' => "text",
  187.                         'customFieldPosition' => 19
  188.                     ]
  189.                 ],
  190.                 [
  191.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '6',
  192.                     'type'   => CustomFieldTypes::TEXT,
  193.                     'config' => [
  194.                         'label' => [
  195.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '6',
  196.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '6',
  197.                         ],
  198.                         'componentName' => "sw-media-field",
  199.                         'customFieldType' => "media",
  200.                         'customFieldPosition' => 20
  201.                     ],
  202.                 ],
  203.                 [
  204.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '6',
  205.                     'type'   => CustomFieldTypes::TEXT,
  206.                     'config' => [
  207.                         'label' => [
  208.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '6',
  209.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '6',
  210.                         ],
  211.                         'componentName' => "sw-field",
  212.                         'customFieldType' => "text",
  213.                         'customFieldPosition' => 21
  214.                     ]
  215.                 ],
  216.                 [
  217.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '7',
  218.                     'type'   => CustomFieldTypes::TEXT,
  219.                     'config' => [
  220.                         'label' => [
  221.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '7',
  222.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '7',
  223.                         ],
  224.                         'componentName' => "sw-media-field",
  225.                         'customFieldType' => "media",
  226.                         'customFieldPosition' => 22
  227.                     ],
  228.                 ],
  229.                 [
  230.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '7',
  231.                     'type'   => CustomFieldTypes::TEXT,
  232.                     'config' => [
  233.                         'label' => [
  234.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '7',
  235.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '7',
  236.                         ],
  237.                         'componentName' => "sw-field",
  238.                         'customFieldType' => "text",
  239.                         'customFieldPosition' => 23
  240.                     ]
  241.                 ],
  242.                 [
  243.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '8',
  244.                     'type'   => CustomFieldTypes::TEXT,
  245.                     'config' => [
  246.                         'label' => [
  247.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '8',
  248.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '8',
  249.                         ],
  250.                         'componentName' => "sw-media-field",
  251.                         'customFieldType' => "media",
  252.                         'customFieldPosition' => 24
  253.                     ],
  254.                 ],
  255.                 [
  256.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '8',
  257.                     'type'   => CustomFieldTypes::TEXT,
  258.                     'config' => [
  259.                         'label' => [
  260.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '8',
  261.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '8',
  262.                         ],
  263.                         'componentName' => "sw-field",
  264.                         'customFieldType' => "text",
  265.                         'customFieldPosition' => 25
  266.                     ]
  267.                 ],
  268.                 [
  269.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '9',
  270.                     'type'   => CustomFieldTypes::TEXT,
  271.                     'config' => [
  272.                         'label' => [
  273.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '9',
  274.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '9',
  275.                         ],
  276.                         'componentName' => "sw-media-field",
  277.                         'customFieldType' => "media",
  278.                         'customFieldPosition' => 26
  279.                     ],
  280.                 ],
  281.                 [
  282.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '9',
  283.                     'type'   => CustomFieldTypes::TEXT,
  284.                     'config' => [
  285.                         'label' => [
  286.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '9',
  287.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '9',
  288.                         ],
  289.                         'componentName' => "sw-field",
  290.                         'customFieldType' => "text",
  291.                         'customFieldPosition' => 27
  292.                     ]
  293.                 ],
  294.                 [
  295.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '10',
  296.                     'type'   => CustomFieldTypes::TEXT,
  297.                     'config' => [
  298.                         'label' => [
  299.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '10',
  300.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '10',
  301.                         ],
  302.                         'componentName' => "sw-media-field",
  303.                         'customFieldType' => "media",
  304.                         'customFieldPosition' => 28
  305.                     ],
  306.                 ],
  307.                 [
  308.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '10',
  309.                     'type'   => CustomFieldTypes::TEXT,
  310.                     'config' => [
  311.                         'label' => [
  312.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '10',
  313.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '10',
  314.                         ],
  315.                         'componentName' => "sw-field",
  316.                         'customFieldType' => "text",
  317.                         'customFieldPosition' => 29
  318.                     ]
  319.                 ],
  320.                 [
  321.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '11',
  322.                     'type'   => CustomFieldTypes::TEXT,
  323.                     'config' => [
  324.                         'label' => [
  325.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '11',
  326.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '11',
  327.                         ],
  328.                         'componentName' => "sw-media-field",
  329.                         'customFieldType' => "media",
  330.                         'customFieldPosition' => 30
  331.                     ],
  332.                 ],
  333.                 [
  334.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '11',
  335.                     'type'   => CustomFieldTypes::TEXT,
  336.                     'config' => [
  337.                         'label' => [
  338.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '11',
  339.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '11',
  340.                         ],
  341.                         'componentName' => "sw-field",
  342.                         'customFieldType' => "text",
  343.                         'customFieldPosition' => 31
  344.                     ]
  345.                 ],
  346.                 [
  347.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '12',
  348.                     'type'   => CustomFieldTypes::TEXT,
  349.                     'config' => [
  350.                         'label' => [
  351.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '12',
  352.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '12',
  353.                         ],
  354.                         'componentName' => "sw-media-field",
  355.                         'customFieldType' => "media",
  356.                         'customFieldPosition' => 32
  357.                     ],
  358.                 ],
  359.                 [
  360.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '12',
  361.                     'type'   => CustomFieldTypes::TEXT,
  362.                     'config' => [
  363.                         'label' => [
  364.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '12',
  365.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '12',
  366.                         ],
  367.                         'componentName' => "sw-field",
  368.                         'customFieldType' => "text",
  369.                         'customFieldPosition' => 33
  370.                     ]
  371.                 ],
  372.                 [
  373.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '13',
  374.                     'type'   => CustomFieldTypes::TEXT,
  375.                     'config' => [
  376.                         'label' => [
  377.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '13',
  378.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '13',
  379.                         ],
  380.                         'componentName' => "sw-media-field",
  381.                         'customFieldType' => "media",
  382.                         'customFieldPosition' => 34
  383.                     ],
  384.                 ],
  385.                 [
  386.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '13',
  387.                     'type'   => CustomFieldTypes::TEXT,
  388.                     'config' => [
  389.                         'label' => [
  390.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '13',
  391.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '13',
  392.                         ],
  393.                         'componentName' => "sw-field",
  394.                         'customFieldType' => "text",
  395.                         'customFieldPosition' => 35
  396.                     ]
  397.                 ],
  398.                 [
  399.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '14',
  400.                     'type'   => CustomFieldTypes::TEXT,
  401.                     'config' => [
  402.                         'label' => [
  403.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '14',
  404.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '14',
  405.                         ],
  406.                         'componentName' => "sw-media-field",
  407.                         'customFieldType' => "media",
  408.                         'customFieldPosition' => 36
  409.                     ],
  410.                 ],
  411.                 [
  412.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '14',
  413.                     'type'   => CustomFieldTypes::TEXT,
  414.                     'config' => [
  415.                         'label' => [
  416.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '14',
  417.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '14',
  418.                         ],
  419.                         'componentName' => "sw-field",
  420.                         'customFieldType' => "text",
  421.                         'customFieldPosition' => 37
  422.                     ]
  423.                 ],
  424.                 [
  425.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '15',
  426.                     'type'   => CustomFieldTypes::TEXT,
  427.                     'config' => [
  428.                         'label' => [
  429.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '15',
  430.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '15',
  431.                         ],
  432.                         'componentName' => "sw-media-field",
  433.                         'customFieldType' => "media",
  434.                         'customFieldPosition' => 38
  435.                     ],
  436.                 ],
  437.                 [
  438.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '15',
  439.                     'type'   => CustomFieldTypes::TEXT,
  440.                     'config' => [
  441.                         'label' => [
  442.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '15',
  443.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '15',
  444.                         ],
  445.                         'componentName' => "sw-field",
  446.                         'customFieldType' => "text",
  447.                         'customFieldPosition' => 39
  448.                     ]
  449.                 ],
  450.                 [
  451.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '16',
  452.                     'type'   => CustomFieldTypes::TEXT,
  453.                     'config' => [
  454.                         'label' => [
  455.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '16',
  456.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '16',
  457.                         ],
  458.                         'componentName' => "sw-media-field",
  459.                         'customFieldType' => "media",
  460.                         'customFieldPosition' => 40
  461.                     ],
  462.                 ],
  463.                 [
  464.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '16',
  465.                     'type'   => CustomFieldTypes::TEXT,
  466.                     'config' => [
  467.                         'label' => [
  468.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '16',
  469.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '16',
  470.                         ],
  471.                         'componentName' => "sw-field",
  472.                         'customFieldType' => "text",
  473.                         'customFieldPosition' => 41
  474.                     ]
  475.                 ],
  476.                 [
  477.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '17',
  478.                     'type'   => CustomFieldTypes::TEXT,
  479.                     'config' => [
  480.                         'label' => [
  481.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '17',
  482.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '17',
  483.                         ],
  484.                         'componentName' => "sw-media-field",
  485.                         'customFieldType' => "media",
  486.                         'customFieldPosition' => 42
  487.                     ],
  488.                 ],
  489.                 [
  490.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '17',
  491.                     'type'   => CustomFieldTypes::TEXT,
  492.                     'config' => [
  493.                         'label' => [
  494.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '17',
  495.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '17',
  496.                         ],
  497.                         'componentName' => "sw-field",
  498.                         'customFieldType' => "text",
  499.                         'customFieldPosition' => 43
  500.                     ]
  501.                 ],
  502.                 [
  503.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '18',
  504.                     'type'   => CustomFieldTypes::TEXT,
  505.                     'config' => [
  506.                         'label' => [
  507.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '18',
  508.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '18',
  509.                         ],
  510.                         'componentName' => "sw-media-field",
  511.                         'customFieldType' => "media",
  512.                         'customFieldPosition' => 44
  513.                     ],
  514.                 ],
  515.                 [
  516.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '18',
  517.                     'type'   => CustomFieldTypes::TEXT,
  518.                     'config' => [
  519.                         'label' => [
  520.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '18',
  521.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '18',
  522.                         ],
  523.                         'componentName' => "sw-field",
  524.                         'customFieldType' => "text",
  525.                         'customFieldPosition' => 45
  526.                     ]
  527.                 ],
  528.                 [
  529.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF '19',
  530.                     'type'   => CustomFieldTypes::TEXT,
  531.                     'config' => [
  532.                         'label' => [
  533.                             'en-GB' => self::TRAUM_CF_PDF_LABEL '19',
  534.                             'de-DE' => self::TRAUM_CF_PDF_LABEL '19',
  535.                         ],
  536.                         'componentName' => "sw-media-field",
  537.                         'customFieldType' => "media",
  538.                         'customFieldPosition' => 46
  539.                     ],
  540.                 ],
  541.                 [
  542.                     'name'   => self::TRAUM_CFS '_' self::TRAUM_CF_PDF_NAME '19',
  543.                     'type'   => CustomFieldTypes::TEXT,
  544.                     'config' => [
  545.                         'label' => [
  546.                             'en-GB' =>  self::TRAUM_CF_PDF_NAME_LABEL '19',
  547.                             'de-DE' =>  self::TRAUM_CF_PDF_NAME_LABEL '19',
  548.                         ],
  549.                         'componentName' => "sw-field",
  550.                         'customFieldType' => "text",
  551.                         'customFieldPosition' => 47
  552.                     ]
  553.                 ],
  554.             ]
  555.         ]
  556.     ];
  557.     public function install (InstallContext $installContext): void
  558.     {
  559. //        $customFieldSetRepository = $this->container->get('custom_field_set.repository');
  560. //        $customFieldSetRepository->upsert(self::CUSTOM_FIELDS, $installContext->getContext());
  561.     }
  562.     public function update(UpdateContext $updateContext): void
  563.     {
  564. //        $customFieldSetRepository = $this->container->get('custom_field_set.repository');
  565. //        $customFieldSetRepository->upsert(self::CUSTOM_FIELDS, $updateContext->getContext());
  566.     }
  567. }