Form/Type/TranslationItemType.php
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        foreach ($options['fields'] as $fieldName => $fieldSettings) {
            $fieldWidget = !empty($fieldSettings['widget_class']) ? $fieldSettings['widget_class'] : TextType::class;
            $fieldOptions = !empty($fieldSettings['options']) ? $fieldSettings['options'] : [];

            $builder->add($fieldName, $fieldWidget, $fieldOptions);
        }
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        foreach ($options['fields'] as $fieldName => $fieldSettings) {
            $fieldWidget = !empty($fieldSettings['widget_class']) ? $fieldSettings['widget_class'] : TextType::class;
            $fieldOptions = !empty($fieldSettings['options']) ? $fieldSettings['options'] : [];

            $builder->add($fieldName, $fieldWidget, $fieldOptions);
        }
    }
{@inheritdoc}