Author: Paweł Jędrzejewski (pawel@sylius.org)
Author: Gonzalo Vilaseca (gvilaseca@reiss.co.uk)
Inheritance: extends Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('file', 'file', ['label' => 'sylius.form.taxon.file']);
 }
Exemplo 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']);
 }