Esempio n. 1
0
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('homepage', HiddenType::class);
 }
Esempio n. 2
0
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
 }
Esempio n. 3
0
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('translations', TranslationsType::class, ['required_locales' => [], 'fields' => ['name' => ['label' => 'form.view.type.name.label']]]);
 }