Elcodi\Admin\StoreBundle\Form\Type\StoreCorporateType::buildForm PHP Метод

buildForm() публичный Метод

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('name', 'text', ['required' => true])->add('leitmotiv', 'text', ['required' => false])->add('logo', 'entity', ['class' => $this->imageNamespace, 'required' => false, 'multiple' => false, 'property' => 'id'])->add('secondaryLogo', 'entity', ['class' => $this->imageNamespace, 'required' => false, 'multiple' => false, 'property' => 'id'])->add('mobileLogo', 'entity', ['class' => $this->imageNamespace, 'required' => false, 'multiple' => false, 'property' => 'id'])->add('headerImage', 'entity', ['class' => $this->imageNamespace, 'required' => false, 'multiple' => false, 'property' => 'id'])->add('backgroundImage', 'entity', ['class' => $this->imageNamespace, 'required' => false, 'multiple' => false, 'property' => 'id']);
    }