src/Form/Type/SectionUpdateType.php
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $settings = $options['section']->getSettings();

        /** @var SettingSchema $setting */
        foreach ($settings as $setting) {
            if (!$setting->isEnabled()) {
                continue;
            }

            $blueprint = $setting->getBlueprint();
            $blueprintOptions = $blueprint->getOptions();
            $blueprintOptions['constraints'] = [];

            foreach ($blueprint->getConstraints() as $class => $constraintOptions) {
                if (!class_exists($class)) {
                    $class = sprintf("Symfony\\Component\\Validator\\Constraints\\".$class);
                }

                $blueprintOptions['constraints'][] = new $class($constraintOptions);
            }

            $type = $blueprint->getType();

            if (get_parent_class($type) === AbstractBlueprintType::class) {
                $blueprintOptions['description'] = $setting->getDescription();
            }

            $builder->add($setting->getKey(), $type, array_merge([
                'label' => $setting->getLabel(),
                'required' => false,
            ], $blueprintOptions));
        }
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $settings = $options['section']->getSettings();

        /** @var SettingSchema $setting */
        foreach ($settings as $setting) {
            if (!$setting->isEnabled()) {
                continue;
            }

            $blueprint = $setting->getBlueprint();
            $blueprintOptions = $blueprint->getOptions();
            $blueprintOptions['constraints'] = [];

            foreach ($blueprint->getConstraints() as $class => $constraintOptions) {
                if (!class_exists($class)) {
                    $class = sprintf("Symfony\\Component\\Validator\\Constraints\\".$class);
                }

                $blueprintOptions['constraints'][] = new $class($constraintOptions);
            }

            $type = $blueprint->getType();

            if (get_parent_class($type) === AbstractBlueprintType::class) {
                $blueprintOptions['description'] = $setting->getDescription();
            }

            $builder->add($setting->getKey(), $type, array_merge([
                'label' => $setting->getLabel(),
                'required' => false,
            ], $blueprintOptions));
        }
    }
{@inheritdoc}