Ejemplo n.º 1
0
 public function buildView(FormView $view, FormInterface $form, array $options)
 {
     parent::buildView($view, $form, $options);
     $view->vars = array_replace($view->vars, array('tab_type' => $this->getName(), 'label' => false));
 }
Ejemplo n.º 2
0
 public function setDefaultOptions(OptionsResolverInterface $resolver)
 {
     parent::setDefaultOptions($resolver);
     $resolver->setDefaults(array('data_class' => 'NGS\\UUID', 'compound' => false));
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     // custom path mapper
     $builder->setDataMapper($options['compound'] ? new ResourcePropertyPathMapper() : null);
 }