original_string: private function createDeleteForm($id) {
          return $this->createFormBuilder()
                          ->setAction($this->generateUrl('admin_news_category_delete', array('id' => $id)))
                          ->setMethod('DELETE')
                          ->add('submit', 'submit', array('label' => 'Delete',
                              'attr' => array(
                                      'onclick' => 'return confirm("Estás seguro?")'
                              )))
                          ->getForm()
          ;
      }
code: private function createDeleteForm($id) {
          return $this->createFormBuilder()
                          ->setAction($this->generateUrl('admin_news_category_delete', array('id' => $id)))
                          ->setMethod('DELETE')
                          ->add('submit', 'submit', array('label' => 'Delete',
                              'attr' => array(
                                      'onclick' => 'return confirm("Estás seguro?")'
                              )))
                          ->getForm()
          ;
      }
code_tokens: private function createDeleteForm ( $ id ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'admin_news_category_delete' , array ( 'id' => $ id ) ) ) -> setMethod ( 'DELETE' ) -> add ( 'submit' , 'submit' , array ( 'label' => 'Delete' , 'attr' => array ( 'onclick' => 'return confirm("Estás seguro?")' ) ) ) -> getForm ( ) ; }
docstring: Creates a form to delete a Category entity by id.
  
  @param mixed $id The entity id
  
  @return Form The form
docstring_tokens: Creates a form to delete a Category entity by id .