Elcodi\Admin\ProductBundle\Form\Type\ManufacturerType::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('name', 'text', ['required' => true, 'constraints' => [new Constraints\Length(['max' => 65])]])->add('slug', 'text', ['required' => false, 'constraints' => [new Constraints\Length(['max' => 65])]])->add('description', 'textarea', ['required' => false])->add('imagesSort', 'text', ['required' => false])->add('images', 'entity', ['class' => $this->imageNamespace, 'required' => false, 'property' => 'id', 'multiple' => true, 'expanded' => true])->add('metaTitle', 'text', ['required' => false])->add('metaDescription', 'text', ['required' => false, 'constraints' => [new Constraints\Length(['max' => 159])]])->add('metaKeywords', 'text', ['required' => false])->add('enabled', 'checkbox', ['required' => false]);
        $builder->addEventSubscriber($this->getEntityTranslatorFormEventListener());
    }