src/Flowcode/ShopBundle/Form/ProductGalleryItemType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('position', 'hidden')
            ->add('page', 'hidden')
            ->add('link')
            ->add('media', new MediaType())
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'position' , 'hidden' ) -> add ( 'page' , 'hidden' ) -> add ( 'link' ) -> add ( 'media' , new MediaType ( ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options