Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Krystian Podemski <[email protected]>
  • Loading branch information
thomasnares and kpodemski authored Dec 5, 2023
1 parent 4f29a74 commit 3cfab6f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ This form type is used as a container of sub forms, each sub form will be render

## Usage and description

This form type [was introduced in {{< minver v="8.1.0">}}](https://github.com/PrestaShop/PrestaShop/pull/28752) in the product form.
This form type [was introduced in {{< minver v="8.1.0">}}](https://github.com/PrestaShop/PrestaShop/pull/28752) in the new product page.

The new Product page uses this form type as the base form type.
The new product page is based on this form type.

Its example usage has been documented in an example module: [`demoproductform`](https://github.com/PrestaShop/example-modules/tree/master/demoproductform).
Its usage has been documented in an example module: [`demoproductform`](https://github.com/PrestaShop/example-modules/tree/master/demoproductform).

The module hooks to `actionProductFormBuilderModifier` to modify the `FormBuilder` for the Product page.
The `ProductFormModifier` adds a new `CustomTabType` (created by the module) to the `FormBuilder` (which is a `NavigationTabType`).
Expand Down Expand Up @@ -61,6 +61,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
}
```

It is rendered this way in the BO Product page:
Preview of how it looks in the back office:

{{< figure src="../img/navigation-tab-type.png" title="NavigationTabType" >}}

0 comments on commit 3cfab6f

Please sign in to comment.