Elcodi\Admin\StoreBundle\Form\Type\StoreAddressType::buildForm PHP Method

buildForm() public method

Buildform function
public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface the formBuilder
$options array the options for this form
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('email', 'text', ['required' => true])->add('address', 'admin_geo_form_type_address', ['required' => false])->add('isCompany', 'choice', ['choices' => [false => 'admin.address.field.isCompany.value.individual', true => 'admin.address.field.isCompany.value.company'], 'expanded' => true, 'multiple' => false, 'required' => true])->add('cif', 'text', ['required' => true])->add('send', 'submit');
    }