CoreExtraBundle/Controller/SliderController.php
private function createDeleteForm(Slider $slider)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('coreextra_slider_delete', array('id' => $slider->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
private function createDeleteForm(Slider $slider)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('coreextra_slider_delete', array('id' => $slider->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
private function createDeleteForm ( Slider $ slider ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'coreextra_slider_delete' , array ( 'id' => $ slider -> getId ( ) ) ) ) -> setMethod ( 'DELETE' ) -> getForm ( ) ; }
Creates a form to delete a Slider entity.

@param Slider $slider The Slider entity

@return \Symfony\Component\Form\Form The form
Creates a form to delete a Slider entity .