<?php namespace Rapsys\BlogBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class LanguageType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('iso6391')->add('iso6393')->add('created')->add('updated'); } /** * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array( 'data_class' => 'Rapsys\BlogBundle\Entity\Language' )); } /** * {@inheritdoc} */ public function getBlockPrefix() { return 'rapsys_blogbundle_language'; } }