Bundle/CoreBundle/Form/WidgetType.php
protected function addEntityFields($form, $options)
    {
        $form
        ->add('fields', WidgetFieldsFormType::class, [
            'label'     => 'widget.form.entity.fields.label',
            'namespace' => $options['namespace'],
            'widget'    => $options['widget'],
        ])
        ->add('entity_proxy', EntityProxyFormType::class, [
            'business_entity_id' => $options['businessEntityId'],
            'namespace'          => $options['namespace'],
            'widget'             => $options['widget'],
        ]);
    }
protected function addEntityFields($form, $options)
    {
        $form
        ->add('fields', WidgetFieldsFormType::class, [
            'label'     => 'widget.form.entity.fields.label',
            'namespace' => $options['namespace'],
            'widget'    => $options['widget'],
        ])
        ->add('entity_proxy', EntityProxyFormType::class, [
            'business_entity_id' => $options['businessEntityId'],
            'namespace'          => $options['namespace'],
            'widget'             => $options['widget'],
        ]);
    }
protected function addEntityFields ( $ form , $ options ) { $ form -> add ( 'fields' , WidgetFieldsFormType :: class , [ 'label' => 'widget.form.entity.fields.label' , 'namespace' => $ options [ 'namespace' ] , 'widget' => $ options [ 'widget' ] , ] ) -> add ( 'entity_proxy' , EntityProxyFormType :: class , [ 'business_entity_id' => $ options [ 'businessEntityId' ] , 'namespace' => $ options [ 'namespace' ] , 'widget' => $ options [ 'widget' ] , ] ) ; }
Add the fields for the form and the entity mode.

@param FormBuilderInterface|FormInterface $form
@param array                              $options
Add the fields for the form and the entity mode .