Files
ws_customhtml/config/form.yml
T
isabelle 7cafc376b7 feat(main): Made group and blocks translatable.
Still need to do slide and FAQ entities
2026-09-09 11:56:18 +02:00

87 lines
3.3 KiB
YAML

services:
websmid.customhtml.form.type.customhtml_group:
public: true
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlGroupType'
parent: "form.type.translatable.aware"
tags:
- { name: form.type }
websmid.customhtml.form.customhtmlgroup_data_provider:
public: true
class: 'Websmid\CustomHtml\Form\DataProvider\CustomHtmlGroupDataProvider'
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\CustomHtmlGroupType'
- '@websmid.customhtml.form.customhtmlgroup_data_provider'
websmid.customhtml.form.customhtmlgroup_data_handler:
public: true
class: 'Websmid\CustomHtml\Form\DataHandler\CustomHtmlGroupDataHandler'
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.customhtmlgroup_data_handler'
websmid.customhtml.form.type.customhtml_faq:
public: true
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlFaqType'
arguments:
- '@translator'
tags:
- { name: form.type }
websmid.customhtml.form.type.customhtml_slide:
public: true
class: 'Websmid\CustomHtml\Form\Type\CustomHtmlSlideType'
arguments:
- '@translator'
tags:
- { name: form.type }
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'