Author: Paweł Jędrzejewski (pawel@sylius.org)
Author: Gonzalo Vilaseca (gvilaseca@reiss.co.uk)
Inheritance: extends Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('file', 'file', ['label' => 'sylius.form.taxon.file']);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('images', 'collection', ['type' => 'sylius_taxon_image', 'allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'label' => 'sylius.form.taxon.images']);
 }