Form/Items/Item.php
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('label', TextType::class, [
            'label' => 'Label',
            'required' => true,
        ]);

        $builder->add('name', TextType::class, [
            'label' => 'Name',
            'required' => true,
            'attr' => [
                'placeholder' => 'only use lowercase letters',
            ],
        ]);

        $builder->add('required', CheckboxType::class, [
            'label' => 'Required',
            'required' => false,
        ]);

        $builder->add('read_only', CheckboxType::class, [
            'label' => 'Read Only',
            'required' => false,
        ]);

        $builder->add('hideLabel', CheckboxType::class, [
            'label' => 'Hide Label',
            'required' => false,
        ]);

        if (class_exists('\Ivory\CKEditorBundle\Form\Type\CKEditorType')) {
            $textAreaType = \Ivory\CKEditorBundle\Form\Type\CKEditorType::class;
        } else {
            $textAreaType = TextareaType::class;
        }

        $builder->add('popover', $textAreaType, [
            'label' => 'Popover',
            'required' => false,
        ]);
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('label', TextType::class, [
            'label' => 'Label',
            'required' => true,
        ]);

        $builder->add('name', TextType::class, [
            'label' => 'Name',
            'required' => true,
            'attr' => [
                'placeholder' => 'only use lowercase letters',
            ],
        ]);

        $builder->add('required', CheckboxType::class, [
            'label' => 'Required',
            'required' => false,
        ]);

        $builder->add('read_only', CheckboxType::class, [
            'label' => 'Read Only',
            'required' => false,
        ]);

        $builder->add('hideLabel', CheckboxType::class, [
            'label' => 'Hide Label',
            'required' => false,
        ]);

        if (class_exists('\Ivory\CKEditorBundle\Form\Type\CKEditorType')) {
            $textAreaType = \Ivory\CKEditorBundle\Form\Type\CKEditorType::class;
        } else {
            $textAreaType = TextareaType::class;
        }

        $builder->add('popover', $textAreaType, [
            'label' => 'Popover',
            'required' => false,
        ]);
    }
{@inheritdoc}