/**
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('name')->add('displayName')->add('defaultValue')->add('section', null, array('required' => true))->add('type', 'choice', array('choices' => CrisisTextLineUserProfileBundle::getHumanReadableFieldTypes(), 'required' => true))->add('isList', null, array('required' => false))->add('readAccess', 'choice', array('choices' => $this->roleNames, 'required' => false))->add('writeAccess', 'choice', array('choices' => $this->roleNames, 'required' => false))->add('enabled', null, array('required' => false));
 }
 /**
  * Get human-readable version of field type
  *
  * @return string 
  */
 public function getHumanReadableType()
 {
     return CrisisTextLineUserProfileBundle::getHumanReadableFieldTypes()[$this->type];
 }