Form/Type/DynamicFormType.php
public function configureOptions(OptionsResolver $resolver)
    {
        $defaults = [];

        $defaults['csrf_protection'] = true;
        $defaults['csrf_field_name'] = '_token';
        $defaults['data_class'] = Dynamic::class;

        $resolver->setDefaults($defaults);

        $resolver->setRequired('locale');
        $resolver->setRequired('type');
        $resolver->setRequired('typeId');
        $resolver->setRequired('name');
        $resolver->setRequired('formEntity');
    }
public function configureOptions(OptionsResolver $resolver)
    {
        $defaults = [];

        $defaults['csrf_protection'] = true;
        $defaults['csrf_field_name'] = '_token';
        $defaults['data_class'] = Dynamic::class;

        $resolver->setDefaults($defaults);

        $resolver->setRequired('locale');
        $resolver->setRequired('type');
        $resolver->setRequired('typeId');
        $resolver->setRequired('name');
        $resolver->setRequired('formEntity');
    }
{@inheritdoc}