original_string: public function onPreSetData(FormEvent $event)
      {
          if (!$event->getData() || !$event->getForm()->getConfig()->getOption('removable')) {
              return;
          }
  
          $event->getForm()->add('remove', 'checkbox', array(
              'label' => $this->options['remove_label']
          ));
      }
code: public function onPreSetData(FormEvent $event)
      {
          if (!$event->getData() || !$event->getForm()->getConfig()->getOption('removable')) {
              return;
          }
  
          $event->getForm()->add('remove', 'checkbox', array(
              'label' => $this->options['remove_label']
          ));
      }
code_tokens: public function onPreSetData ( FormEvent $ event ) { if ( ! $ event -> getData ( ) || ! $ event -> getForm ( ) -> getConfig ( ) -> getOption ( 'removable' ) ) { return ; } $ event -> getForm ( ) -> add ( 'remove' , 'checkbox' , array ( 'label' => $ this -> options [ 'remove_label' ] ) ) ; }
docstring: Adds a remove-field if need
  
  @param FormEvent $event
docstring_tokens: Adds a remove - field if need