PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook action<Object>FormBuilderModifier

Information

Modify an identifiable object form content:

This hook allows to modify an identifiable object forms content by modifying form builder data or FormBuilder itself. Replace FormBuilderName by the identitiable object type.

Hook locations:

  • back office
  • front office

Hook type: action

Located in:

Call of the Hook in the origin file

$this->hookDispatcher->dispatchWithParameters('action' . $this->camelize($formBuilder->getName()) . 'FormBuilderModifier', [
    'form_builder' => $formBuilder,
    'data' => &$data,
    'options' => &$options,
    'id' => $id
]);

Example implementation

This hook has been implemented as an example in our modules examples repository - demoextendsymfonyform1.

This hook has been implemented as an example in our modules examples repository - demoextendsymfonyform2.

This hook has been implemented as an example in our modules examples repository - demoextendsymfonyform3.

This hook has been implemented as an example in our modules examples repository - demoproductform.

This hook has been described in the context of Product Page in Back Office in Extending the new product page form page