Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     $resolver->setDefaults(array('widget' => 'single_text', 'compound' => false, 'format' => $this->converter->getFormat(true)));
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     $resolver->setDefaults(array('required' => false, 'data_extraction_method' => 'default', 'widget' => 'single_text', 'compound' => false, 'format' => $this->converter->getFormat(true)))->setAllowedValues('data_extraction_method', array('default'));
 }
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     $resolver->setDefaults(array('date_widget' => 'single_text', 'date_format' => $this->converter->getFormat(true), 'time_widget' => 'single_text', 'input' => 'datetime', 'html5' => false));
 }