feat(main): Groups and blocks

This commit is contained in:
2026-08-10 16:13:15 +02:00
parent 6aff506cd6
commit 635c13a0ed
39 changed files with 1188 additions and 237 deletions
+47 -11
View File
@@ -1,34 +1,70 @@
services:
websmid.customhtml.form.type.customhtml:
websmid.customhtml.form.type.customhtml_group:
public: true
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlType'
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlGroupType'
parent: 'form.type.translatable.aware'
tags:
- { name: form.type }
websmid.customhtml.form.customhtml_data_provider:
websmid.customhtml.form.customhtmlgroup_data_provider:
public: true
class: 'Websmid\CustomHtml\Form\DataProvider\CustomHtmlDataProvider'
class: 'Websmid\CustomHtml\Form\DataProvider\CustomHtmlGroupDataProvider'
websmid.customhtml.form.customhtml_data_form_builder:
websmid.customhtml.form.customhtmlgroup_data_form_builder:
public: true
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Builder\FormBuilder'
factory:
- '@prestashop.core.form.builder.form_builder_factory'
- 'create'
arguments:
- 'Websmid\CustomHtml\Form\Type\CustomHtmlType'
- '@websmid.customhtml.form.customhtml_data_provider'
- 'Websmid\CustomHtml\Form\Type\CustomHtmlGroupType'
- '@websmid.customhtml.form.customhtmlgroup_data_provider'
websmid.customhtml.form.customhtml_data_handler:
websmid.customhtml.form.customhtmlgroup_data_handler:
public: true
class: 'Websmid\CustomHtml\Form\DataHandler\CustomHtmlDataHandler'
class: 'Websmid\CustomHtml\Form\DataHandler\CustomHtmlGroupDataHandler'
websmid.customhtml.form.customhtml_form_handler:
websmid.customhtml.form.customhtmlgroup_form_handler:
public: true
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Handler\FormHandler'
factory:
- '@prestashop.core.form.identifiable_object.handler.form_handler_factory'
- 'create'
arguments:
- '@websmid.customhtml.form.customhtml_data_handler'
- '@websmid.customhtml.form.customhtmlgroup_data_handler'
websmid.customhtml.form.type.customhtml_block:
public: true
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlBlockType'
parent: 'form.type.translatable.aware'
arguments:
- '@websmid.customhtml.form.choice_provider.customhtml_group_choice_provider'
tags:
- { name: form.type }
websmid.customhtml.form.customhtmlblock_data_provider:
public: true
class: 'Websmid\CustomHtml\Form\DataProvider\CustomHtmlBlockDataProvider'
websmid.customhtml.form.customhtmlblock_data_form_builder:
public: true
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Builder\FormBuilder'
factory:
- '@prestashop.core.form.builder.form_builder_factory'
- 'create'
arguments:
- 'Websmid\CustomHtml\Form\Type\CustomHtmlBlockType'
- '@websmid.customhtml.form.customhtmlblock_data_provider'
websmid.customhtml.form.customhtmlblock_data_handler:
public: true
class: 'Websmid\CustomHtml\Form\DataHandler\CustomHtmlBlockDataHandler'
websmid.customhtml.form.customhtmlblock_form_handler:
public: true
class: 'PrestaShop\PrestaShop\Core\Form\IdentifiableObject\Handler\FormHandler'
factory:
- '@prestashop.core.form.identifiable_object.handler.form_handler_factory'
- 'create'
arguments:
- '@websmid.customhtml.form.customhtmlblock_data_handler'