Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

TranslateType

This form class is responsible for creating a translatable form. Language selection uses tabs.

  • Namespace: PrestaShopBundle\Form\Admin\Type
  • Reference: TranslateType

Type options

Option Type Default value Description

Code example

$builder->add('custom_value', TranslateType::class, [
    'type' => FormType\TextType::class,
    'options' => [],
    'locales' => $this->locales,
    'hideTabs' => true,
    'required' => false,
    'label' => $this->translator->trans('OR Customized value', [], 'Admin.Catalog.Feature'),
]);