Example #1
0
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['template']);
     $resolver->setDefaults(['template' => 'CtrlRadBundle:crud:edit.html.twig', 'template_form_elements' => 'CtrlRadBundle:partial:_form_elements.html.twig', 'template_form_buttons' => 'CtrlRadBundle:partial:_form_buttons.html.twig', 'save_success_redirect' => self::SAVE_SUCCESS_REDIRECT, 'post_persist' => null, 'pre_persist' => null, 'entity' => null, 'entity_id' => null]);
     $resolver->setRequired(['form']);
 }
Example #2
0
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(['template']);
     $resolver->setDefaults(array('template' => 'CtrlRadBundle:crud:index.html.twig', 'template_filter_form' => 'CtrlRadBundle:partial:_form_elements.html.twig', 'filter_form' => null, 'filter_enabled' => false, 'table' => null, 'default_criteria' => array(), 'query_builder' => null, 'sort' => array()));
 }
Example #3
0
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(['entity_id' => null, 'entity' => null]);
 }