mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			922 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			922 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Chill\MainBundle\Form;
 | |
| 
 | |
| use Symfony\Component\Form\AbstractType;
 | |
| use Symfony\Component\Form\FormBuilderInterface;
 | |
| use Symfony\Component\OptionsResolver\OptionsResolver;
 | |
| use Symfony\Component\Form\Extension\Core\Type\TextType;
 | |
| 
 | |
| class CenterType extends AbstractType
 | |
| {
 | |
|     /**
 | |
|      * @param FormBuilderInterface $builder
 | |
|      * @param array $options
 | |
|      */
 | |
|     public function buildForm(FormBuilderInterface $builder, array $options)
 | |
|     {
 | |
|         $builder
 | |
|             ->add('name', TextType::class)
 | |
|         ;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @param OptionsResolverInterface $resolver
 | |
|      */
 | |
|     public function configureOptions(OptionsResolver $resolver)
 | |
|     {
 | |
|         $resolver->setDefaults(array(
 | |
|             'data_class' => 'Chill\MainBundle\Entity\Center'
 | |
|         ));
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return string
 | |
|      */
 | |
|      public function getBlockPrefix()
 | |
|     {
 | |
|      return 'chill_mainbundle_center';
 | |
|      }
 | |
|      
 | |
| }
 |