CoreBundle/Controller/RoleController.php
private function createDeleteForm(Role $role)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('core_role_delete', array('id' => $role->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
private function createDeleteForm(Role $role)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('core_role_delete', array('id' => $role->getId())))
            ->setMethod('DELETE')
            ->getForm()
        ;
    }
private function createDeleteForm ( Role $ role ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'core_role_delete' , array ( 'id' => $ role -> getId ( ) ) ) ) -> setMethod ( 'DELETE' ) -> getForm ( ) ; }
Creates a form to delete a role entity.

@param Role $role The role entity

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